The operation that should be sliced.
The starting indices for each dimension.
The stopping indices for each dimension.
import dopt.core : evaluate; auto s1 = int32([3, 3], [ 1, 2, 3, 4, 5, 6, 7, 8, 9 ]).slice([1, 1], [3, 3]); assert(s1.evaluate().get!int == [ 5, 6, 8, 9 ]);
Slices the result of an operation.