Subject: Re: Curry
From: "Shashank Date" <sdate@ e s c e
Date: Sat, 27 Dec 2003 17:31:49 +0900
References: 8889588906
Replying to my own post :-)
> I googled for "ruby curry fuction" and the very first hit took me to:
^^^^^^ function
> So how do I use it ?
p1 = Proc.new {|x,y| x+y}
p2 = p1.ncurry(2).call(10)
p p2.call(30) # => 40
>-- shako
^^^^^^^^ shanko