Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- gen = lambda {
- 10.times do |n|
- yield n
- end
- }
- gen.call {|foo| puts foo+3}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement