I have Googled this and got patchy / contradictory opinions - is there actually any difference between doing a map and doing a collect on an array
map
collect
The collect and collect! methods are aliases to map and map!, so they can be used interchangeably. Here is an easy way to confirm that:
collect!
map!
Array.instance_method(:map) == Array.instance_method(:collect) => true