Ruby map
is now preferred over Ruby collect
. The name of the post
says it all. Here is the style guide. Be forewarned that web search
engine results have a tendency to point you to a lot of the older
documentation that recommends otherwise. A common problem with Ruby.
20190927/https://rubystyle.guide/#map-find-select-reduce-size