unzipped slice
import mir.ndslice.allocation : slice; import mir.ndslice.topology : iota; auto alpha = iota!int(4, 3); auto beta = iota!int([4, 3], 1).slice; auto m = zip(alpha, beta); static assert(is(typeof(unzip!'a'(m)) == typeof(alpha))); static assert(is(typeof(unzip!'b'(m)) == typeof(beta))); assert(m.unzip!'a' == alpha); assert(m.unzip!'b' == beta);
Selects a slice from a zipped slice.