foo.call(3).call(4) should work

blambeau

On Wed, Jan 14, 2009 at 11:09 AM, zslevi <zslevi / gmail.com> wrote:
> foo = lambda {|x| lambda {|y| return x+y}}
>
> foo.call(3)(4)
>
> Why this doesn't work? I expected lamdas to behave like in SML.
>
>