-
-
Save edsu/0ed901d942a77f750dd277df3ab9757b 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
def stuff() | |
yield 1 | |
yield 2 | |
yield 3 | |
yield 4 | |
yield 5 | |
end | |
stuff.take(2).each do |i| | |
puts i | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment