Hi,

2008/3/1, Lin Jen-Shin <godfat / gmail.com>:
> 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 <mame / tsg.ne.jp>