3 ms·
Why is my system slow? $ grep -R "map" * reduce(filter even? (apply ( 3) (map inc (i for i in (filter even? collection)))))* What's with the dissing on map?
by paultopia 9y ago
Why is my system slow?
$ grep -R "map" *
reduce(filter even? (apply ( 3) (map inc (i for i in (filter even? collection)))))*
What's with the dissing on map? Awkward code like that can be written in lots of ways... (rewrite it with transducers, friend catfish, rewrite it with transducers!)
- dizzystar 9y ago<3 Searching "map" was an entry into the larger joke, but not sure if it came across on the psuedocode.
- mhax 9y agoWas it a 'functional programmers know the value of everything and the cost of nothing' kind of joke?
- jperrot 9y agoif I read this correctly, the reduce statement here is reducing an always-empty collection.