The OpenD Programming Language

allReversed

Reverses the direction of iteration for all dimensions.

Slice!(Iterator, N, Universal)
allReversed
(
Iterator
size_t N
SliceKind kind
)
(
Slice!(Iterator, N, kind) _slice
)

Parameters

_slice Slice!(Iterator, N, kind)

input slice

Return Value

Type: Slice!(Iterator, N, Universal)

n-dimensional slice

Examples

import mir.ndslice.slice;
import mir.ndslice.topology: iota, retro;
assert(iota(4, 5).allReversed == iota(4, 5).retro);

Meta