RadialTuple

Creates a generic tuple comprised of all elemetns of A which are teken starting from a given point and progressively extending left and right from that point. If RadialTupleMiddle is used or startingIndex is -1 it is assumed that no initial point is given and iteration starts from the middle of A.

Members

Aliases

RadialTuple
alias RadialTuple = RoundRobinTuple!(PackedGenericTuple!(RetroTuple!(A[0..i])), PackedGenericTuple!(A[i..$]))
Undocumented in source.

Manifest constants

i
enum i;
Undocumented in source.

Examples

static assert(RadialTuple!(-1, 1, 2, 3, 4, 5) == expressionTuple!(3, 4, 2, 5, 1));
static assert(RadialTuple!( 1, 1, 2, 3, 4, 5) == expressionTuple!(2, 3, 1, 4, 5));

Analog of $(STDREF range, radial) for generic tuples except startingIndex is the first argument and there is no overload without it.

Meta