/** * Curry this closure by fixing its first free variable to a given value. * @param curry The value to which the first variable should be curry * @return A Closure having a single free variable */ public Closure1<B> curry1(A curry) { return curry(new Closure1<B>(), curry, 1); }
/** * Curry this closure by fixing its second free variable to a given value. * @param curry The value to which the second variable should be curry * @return A Closure having a single variable */ public Closure1<A> curry2(B curry) { return curry(new Closure1<A>(), curry, 2); }