a scalar
lazy slice of the same kind and the same structure Note: Does not allocate neither new slice nor a closure.
import mir.ndslice.topology; // 0 1 2 3 auto s = iota([4]); // 0 1 2 0 assert(s % 3 == iota([4]).map!"a % 3"); // 0 2 4 6 assert(2 * s == iota([4], 0, 2));
import mir.ndslice.topology; // 0 1 2 3 auto s = iota([4]); // 0 1 4 9 assert(s ^^ 2.0 == iota([4]).map!"a ^^ 2.0");
Element-wise operator overloading for scalars.