radial
fn
auto 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
r | a random access range with length and slicing |
startingIndex | the index to begin iteration from |
Returns
A forward range with length