Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
The ambiguity between “Map” (data-structure) and “map” (higher order function) (twitter.com/brandonbloom)
4 points by tosh on Dec 6, 2020 | hide | past | favorite | 1 comment


I think of them as noun and verb: a Map is a mapping from thing to another thing; map the function maps several things to other things.

IMO, neither are quite named right: surely Map should be Mapping, and map should be mapSeveral?




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

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

Search: