Last active
December 16, 2019 11:01
-
-
Save jjuliano/d27cd8f234fdc7804067a0f82030ce9a to your computer and use it in GitHub Desktop.
This file contains hidden or 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..4).collect {|i| i*i } #=> [1, 4, 9, 16] | |
(1..4).collect { "cat" } #=> ["cat", "cat", "cat", "cat"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment