2012/3/7 Ralph Shnelvar <ralphs / dos32.com>:
> First you have to know there is a lambda? function.

It's all documented here: http://www.ruby-doc.org/core-1.9.3/Proc.html
Ruby's docs are IMO pretty good. Also, in IRB you can always call
#methods or #instance_methods to see what the object can do, for ex.

irb(main):007:0> Proc.instance_methods(false).sort # "false" means
"don't show inherited methods"
=> [:==, :===, :[], :arity, :binding, :call, :clone, :curry, :dup,
:eql?, :hash, :lambda?, :parameters, :source_location, :to_proc,
:to_s, :yield]


> So, given there is a lambda? function, why not a proc? function?
> In terms of design, why isn't lambda a super or sub class of Proc?

These two I can't answer. I guess it could be both ways.


-- Matma Rex