immutable int[6] x = [0, 1, 2, 3, 4, 5]; immutable y = x.spliced2; assert(y.first.equal(x[0 .. 3])); assert(y.second.equal(x[3 .. $]));
See Implementation