M

Mr. Dubey • 52.63K Points
Coach

Q. How do you define a lambda in Ruby?

  • (A) By using the create_lambda function
  • (B) By defining a method with the keyword lambda
  • (C) Using the lambda keyword followed by curly braces {}
  • (D) By using the -> (stabby lambda) syntax
  • Correct Answer - Option(D)
  • Views: 50
  • Filed under category Ruby

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.


Question analytics