Difference between map and collect in Ruby?

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 in Ruby/Rails?

The docs don’t seem to suggest any, but are there perhaps differences in method or performance?

6 Answers
6

Leave a Comment