M

Mr. Dubey • 52.30K Points
Coach

Q. What is the main difference between a lambda and a Proc in Ruby?

  • (A) Procs can be converted to lambdas, but lambdas cannot be converted to Procs
  • (B) Lambdas are objects of the Proc class, while Procs are not
  • (C) Lambdas enforce strict argument checking, while Procs do not
  • (D) Procs can accept a variable number of arguments, while lambdas cannot

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.