TupleFunction

Either of functions, which takes a Tuple.

Constructors

this
this(Either!(Function!(A, C), Function!(B, C)) f)
Undocumented in source.
this
this(Function!(A, C) f)
Undocumented in source.
this
this(Function!(B, C) f)
Undocumented in source.

Members

Functions

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

Variables

f
Either!(Function!(A, C), Function!(B, C)) f;
Undocumented in source.

Examples

static string cts(char x)
{
	import std.conv : to;
	return x.to!string;
}
static string rts(real x)
{
	import std.conv : to;
	return x.to!string;
}
auto l = RealFunction!cts.get.leftTupleFunction!real;
auto r = RealFunction!rts.get.rightTupleFunction!char;
static assert (is (typeof (l) == typeof (r)));

Meta