why was the word "map" used as the name of such a ...
# announcements
h
why was the word "map" used as the name of such a function instead of "collect"? wouldn't the latter be easier to understand, especially when maps are already types of collections?
g
Your question bus actually good example that any other name is not better. Why collect? This function actually transforms one value (list item in this case) to another, so does mapping. I don't want to say that this is obvious of course, but not worse than collect or any other alternative