On Sun, 2006-05-21 at 02:03 +0900, transfire / gmail.com wrote:
> >>   multiply_by_3 = method(:multiply).curry(__, 3)
> >>
> >> Or course it would be nicer if one could just do:
> >>
> >>   multiply_by_3 = multiply(__, 3)
> >>
> >> But obviously that means changing Ruby itself a bit.
> 
> > def __() Curry::HOLE end
> 
> Thanks, Jim. That'll do the trcik for this first way --although it
> isn't REAL currying actually but just method wrapping.

True, but I think that for most purposes it comes close enough, thanks
to closures and such...? I don't know how we might do 'actual currying'
in Ruby, without patching it's C-side implementation quite extensively
(and changing the way stuff works in the process - not good)...

-- 
Ross Bamford - rosco / roscopeco.REMOVE.co.uk