Difference between map and collect in Ruby?

There’s no difference, in fact map is implemented in C as rb_ary_collect and enum_collect (eg. there is a difference between map on an array and on any other enum, but no difference between map and collect). Why do both map and collect exist in Ruby? The map function has many naming conventions in different languages. Wikipedia provides an overview: The map function originated in functional programming languages but is today supported (or may be … Read more