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

#each and #map are not meant to be the same thing. #each in any language is meant only for side-effects. If you only care about the return value, #map is a much better choice. (Similarly, if you only care about the return value but want many items condensed into one "reduced" item, you want #reduce.)


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

Search: