Skip to content

Instantly share code, notes, and snippets.

@rafer
Created April 14, 2011 20:25
Show Gist options
  • Save rafer/920423 to your computer and use it in GitHub Desktop.
Save rafer/920423 to your computer and use it in GitHub Desktop.
ROB 4/14/2011 Trivia: Question 5
# Question 5. What's the output of the following?
def lambdicate
print "A"
lambda { return }.call
print "B"
end
def proctify
print "A"
Proc.new { return }.call
print "B"
end
lambdicate
proctify
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment