News for hackers. Stuff that matters.
Re:Swift and the Legacy of Functional Programming by TheCoelacanth on Monday November 21, 2016 @04:05PM (#13009209)
Even Java manages to get your example to work efficiently with map/filter. It's not rocket science. Just because some library designers screwed it up doesn't invalidate the whole concept.
Re:Swift and the Legacy of Functional Programming by jfoutz on Monday November 21, 2016 @04:36PM (#13009431)
but java provides collect. which is, like, the right way to do it.

I'm just sort of mystified that people are defending map.filter over filter.map (which isn't crazy, as name.isValidPerson isn't provided.) but, you know, fold is a thing.