Skip to content

Instantly share code, notes, and snippets.

@udzura
Created November 13, 2012 07:04
Show Gist options
  • Save udzura/4064424 to your computer and use it in GitHub Desktop.
Save udzura/4064424 to your computer and use it in GitHub Desktop.
ruby20-lazy-test.rb
[1, 2, 3].cycle.lazy.take 5
# => #<Enumerator::Lazy: #<Enumerator::Lazy: #<Enumerator: [1, 2, 3]:cycle>>:take(5)>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment