CurriedFunction

Curry a function.

  1. class CurriedFunction(A, B, C)
  2. auto curry(F f)

Constructors

this
this(Function!(Tuple!(A, B), C) uncurried)
Undocumented in source.

Members

Classes

Partial
class Partial
Undocumented in source.

Functions

opCall
Function!(B, C) opCall(A x)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

uncurried
Function!(Tuple!(A, B), C) uncurried;
Undocumented in source.

Examples

static class F : Function!(Tuple!(int, int), int)
{
	override int opCall(Tuple!(int, int) x)
	{
		return x[0] + x[1];
	}
	mixin Singleton;
}
auto cf = F.get.curry;
static assert (is (typeof (cf) : Function!(int, Function!(int, int))));

Meta