Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
jayd16
10y ago
0 comments
Save
Share
Simple things like adding a list of Apples to a list of Fruits become non-trivial.
0 comments
3 comments · 1 top-level
top
newest
oldest
continuational
10y ago
· 2 in thread
Non-trivial? In Scala it would be:
fruits ++= apples.map(_.asFruit)
shiro
10y ago
That part is fine. The difficulty arises when you want to take out an apple from a list of fruits.
catnaroek
10y ago
Why should you be able to do that?
1 more reply
j
/
k
navigate · click thread line to collapse