Hacker News new | comments | show | ask | jobs | submit login

If you call reduce on it twice, then sure, it would do all the work twice.



Jules's point is that the map is done twice, which it is. If you don't want that, you can reduce into a collection and then reduce the collection twice.




Applications are open for YC Winter 2018

Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | DMCA | Apply to YC | Contact

Search: