retro

fnauto retro(Range)(Range r) if (isBidirectionalRange!(Unqual!Range))

Iterates a bidirectional range backwards. The original range can be accessed by using the source property. Applying retro twice to the same range yields the original range.

Parameters

rthe bidirectional range to iterate backwards

Returns

A bidirectional range with length if r also provides a length. Or,

if r is a random access range, then the return value will be random access as well.

See Also

reverse for mutating the source range directly.