You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The method #collect, or its alias #map if your prefer, is one of the most useful methods
in Rubyland. You see it all the time. Unfortunately it isn't applicable to a number of common
variants of iteration. One of these is Integer#times. So Facets provided just such a method.
This is also aliased as times_map. But if either of these method names strikes you
as too long then you might find this alternate (required separately) more convenient: