What is a lambda in Ruby?
A. A block of code that is executed within the context of a specific object
B. An anonymous function that can be passed around like an object
C. A closure that captures its surrounding scope and can be passed around like an object
D. None of the above
Answer: Option B

Join The Discussion