On Saturday, 16 August 2025 at 23:42:04 UTC, 0xEAB wrote:
you can create a zero-length slice outside of the “range” of the original slice.
int[] foo = [0, 1, 2]; int[] bar = foo[3 .. $]; // OKint[] boo = foo[3 .. 4]; // Error: slice [3 .. 4] extends past source array of length 3