splicer2

Specialization of splicerN to N=2.

@trusted
splicer2
(
T
)
(
T[] x
)

Examples

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

Meta