Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: