mir_slice.opSlice

Slice!(IotaIterator!size_t) is the basic type for [a .. b] syntax for all ndslice based code.

struct mir_slice(Iterator_, size_t N_ = 1, SliceKind kind_ = Contiguous, Labels_...)
@safe scope const
@optmath
opSlice
(
size_t dimension
)
(
size_t i
,
size_t j
)
if (
dimension < N
)
if (
0 < N_ &&
N_ < 255
&&
!(
kind_ == Canonical &&
N_ == 1
)
&&
Labels_.length <= N_
&&
isIterator!Iterator_
)

Meta