reverse

Creates a copy of a Tuple with its fields in reverse order.

reverse
(
T
)
(
T t
)
if ()

Parameters

t T

The Tuple to copy.

Return Value

Type: auto

A new Tuple.

Examples

auto tup = tuple(1, "2");
assert(tup.reverse == tuple("2", 1));

Meta