reverseInPlace

Reverses data in the 1D slice.

void
reverseInPlace
(
Iterator
)
(
Slice!Iterator slice
)

Examples

import mir.ndslice;
auto s = 5.iota.slice;
s.reverseInPlace;
assert([4, 3, 2, 1, 0]);

Meta