Created
August 9, 2018 03:26
-
-
Save radar/328f0b1d126e6b3123387a73e85d9500 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[1,2,3,4,5].each_with_index.each_with_object([]) do |(e, i), a| | |
a << e * i | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment