Showing with 8 additions and 0 deletions.
  1. +8 −0 std/range/package.d
8 changes: 8 additions & 0 deletions std/range/package.d
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,14 @@ import std.traits; // CommonType, isCallable, isFloatingPoint, isIntegral,
Iterates a bidirectional range backwards. The original range can be
accessed by using the $(D source) property. Applying retro twice to
the same range yields the original range.
Params:
r = the 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.
*/
auto retro(Range)(Range r)
if (isBidirectionalRange!(Unqual!Range))
Expand Down