A Admin • 828.03K 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 Correct Answer - Option(C) Views: 4 Filed under category Ruby Hashtags: Share Manage Tags
Discusssion
Login to discuss.