Re:Swift and the Legacy of Functional Programming
by ebola1717 on Monday November 21, 2016 @01:43PM
(#13007914)
I find it easier to read with the exception of the anonymous variables. In scala, I would write
[ Parent
| on HN ]
Re:Swift and the Legacy of Functional Programming
by virtualwhys on Monday November 21, 2016 @02:54PM
(#13008570)
Dunno, it's fairly obvious what you're working with, being explicit doesn't buy that much (for me at any rate).
val persons =
names.map(Person.apply).
filter(_.isValid)