tie

Allows to fast retreiving results from functions that returns a tuple.

@property
void
tie
(
T...
)
(
Tuple!(TypesOf!T) t
)

Examples

Example

Tuple!(int, string) foo()
{
    return tuple(1, "a");
}

int x;
string y;

tie!(x,y) = foo();
assert(x == 1 && y == "a");

Meta