Skip to content

Instantly share code, notes, and snippets.

@jjuliano
Created June 2, 2019 22:06
Show Gist options
  • Save jjuliano/3fdb7653a9ebc465594003e81f697c6a to your computer and use it in GitHub Desktop.
Save jjuliano/3fdb7653a9ebc465594003e81f697c6a to your computer and use it in GitHub Desktop.
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