Tuesday, 13 August 2013

Lambda vs Proc in Ruby

Lambda vs Proc in Ruby

I'm just starting to learn ruby and came across both Lambda's and Proc. I
understand that there are different situations in which they should be
used (lambda checks number of arguments, etc.), but do they take up
different amounts of memory? If so, which one is more efficient?
Thanks.

No comments:

Post a Comment