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