Advertisement
Guest User

Untitled

a guest
Feb 15th, 2013
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.08 KB | None | 0 0
  1. gen = lambda {
  2. 10.times do |n|
  3. yield n
  4. end
  5. }
  6.  
  7. gen.call {|foo| puts foo+3}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement