Created
June 2, 2019 22:06
-
-
Save jjuliano/3fdb7653a9ebc465594003e81f697c6a 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
a = ["a", "b", "c"] | |
a.cycle(2) {|x| puts x } # a, b, c, a, b, c. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment