3 ms·
(You want for_each not map, by the way)
by steveklabnik 7y ago
(You want for_each not map, by the way)
- Gaelan 7y agoWait, why? AFIAK for_each doesn't return another iterator, and I'm calling sum afterward.
- steveklabnik 7y ago.... hacker news cut off the “sum” part, and so I didn’t see it. On my phone it just happened to clip it exactly long enough that it was still valid syntax, wow. Anyway, sorry and my bad!