The OpenD Programming Language

mir_slice.popBackAll

Peforms popBackAll for all dimensions

struct mir_slice(Iterator_, size_t N_ = 1, SliceKind kind_ = Contiguous, Labels_...)
static if(N > 1)
static if(kind_ != SliceKind.contiguous)
void
popBackAll
()
if (
0 < N_ &&
N_ < 255
&&
!(
kind_ == Canonical &&
N_ == 1
)
&&
Labels_.length <= N_
&&
isIterator!Iterator_
)

Examples

import mir.ndslice.topology: iota, canonical;
auto v = [2, 3].iota.canonical;
v.popBackAll;
assert(v == [[0, 1]]);

Meta