Lambda and JSR 292 method handle

John Nilsson john at milsson.nu
Thu Dec 17 12:14:35 PST 2009


On Thu, Dec 17, 2009 at 5:03 PM, Rémi Forax <forax at univ-mlv.fr> wrote:

> You don't need a class. There is a special operation named insertArguments
> that allow to specify the first arguments of a method handle in order to
> create
> another method handle. This operation is commonly called currying.


In reference to the earlier thread about being careful about terminology it
would be more correct to call it partial application.

Currying is the act of taking #R(A1,A2,...,An) and turn it into
###...#R(An)...(A2)(TA1)
(I must say that this type syntax isn't really nice to higher order
functions ... )

BR,
John


More information about the lambda-dev mailing list