From: Yusuke ENDOH Date: 2008-03-02T18:56:35+09:00 Subject: Re: Proc#curry doesn't work on func which produces func Hi, 2008/3/1, Lin Jen-Shin : > Proc#curry doesn't work on function which produces function, > as a result, Proc#curry doesn't work on Symbol#to_proc. > > The problem is, the produced function is not a > curried function. e.g., > > :+.to_proc.curry[1][2] > > would fail, because :+.to_proc is producing a > function which arity equals to -1. I want to say it's bug. Please don't blame Proc#curry ;) If it's "a feature", there is a workaround to specify the number of arguments explicitly: p :+.to_proc.curry(2)[1][2] #=> 3 -- Yusuke ENDOH