Aes.slice

Takes a slice of the tuple.

struct Aes
@property ref @trusted
Tuple!(sliceSpecs!(from, to))
slice
(
size_t from
size_t to
)
()
if (
from <= to &&
)

Examples

Tuple!(int, string, float, double) a;
a[1] = "abc";
a[2] = 4.5;
auto s = a.slice!(1, 3);
static assert(is(typeof(s) == Tuple!(string, float)));
assert(s[0] == "abc" && s[1] == 4.5);

Meta