StrideTuple

Creates a generic tuple comprised of elemetns of A taken with stride n.

Applying StrideTuple twice to the same generic tuple equals to applying StrideTuple with a step that is the product of the two applications.

Members

Aliases

StrideTuple
alias StrideTuple = GenericTuple!(A[0], StrideTuple!(n, A[min(n, $)..$]))
Undocumented in source.
StrideTuple
alias StrideTuple = GenericTuple!()
Undocumented in source.

Examples

static assert(is(StrideTuple!(2, ubyte, byte, uint, int, ulong, long) == TypeTuple!(ubyte, uint, ulong)));
static assert(StrideTuple!(3, iota) == expressionTuple!(1, 4, 7, 10));

Analog of $(STDREF range, stride) for generic tuples except n is the first argument.

Meta