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.
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.