radial

fnauto radial(Range, I)(Range r, I startingIndex) if (isRandomAccessRange!(Unqual!Range) && hasLength!(Unqual!Range) && hasSlicing!(Unqual!Range) && isIntegral!I)

Iterates a random-access range starting from a given point and progressively extending left and right from that point. If no initial point is given, iteration starts from the middle of the range. Iteration spans the entire range.

When startingIndex is 0 the range will be fully iterated in order and in reverse order when r.length is given.

Parameters

ra random access range with length and slicing
startingIndexthe index to begin iteration from

Returns

A forward range with length
fnauto radial(R)(R r) if (isRandomAccessRange!(Unqual!R) && hasLength!(Unqual!R) && hasSlicing!(Unqual!R))

Ditto