Open
Description
// http://mir-algorithm.libmir.org/mir_ndslice_slice.html#sliced
auto arr = [
1, 2, 3,
4, 5, 6];
auto s = arr.sliced(2, 1);
Assert.equal(s.elementCount, arr.length); // failed
s.prettyArr.writeln;
Expected:6
Actual:2
When user turn an array into a slice, I think most of the time they want turn the whole array into a N-d slice; if this is a feature, I'd think it's a mis-feature, should be better documented (so no surprise to the user), and maybe also issue a run-time warning by default, if the converted sliced.elementCount != arr.length