From: Christian Szegedy Date: 2002-09-24T23:00:45+09:00 Subject: Re: are functions/methods "first class objects"? Christoph wrote: > k = 35 > a = lambda {|x,y| [k + 2 * x, k + 3 * x] } > b = lambda {|t,s| t + s } > > c = lambda {|_t,_s| b[*a[_t,_s]] } > > p c[1,1] # 75 > I see, thanks. I think that want a little too much from Ruby. In OCAML e.g it would not be possible to recognize tuples as return values and then "curryfy" them in a general way (i.e handling tuples of any size), because of the static type safety.) In Ruby, it would be possible, but requires some ugly hacking. Regards, Christian