ddash.algorithm.reverse

Reverses the range by mutating it

Members

Functions

reverse
void reverse(ref Range range)

Reverses elements in a range

Examples

auto arr = [1, 2, 3, 4];
arr.reverse;
assert(arr.equal([4, 3, 2, 1]));

Meta