chapelu
1
21295, "cassella", "Feature idea/request: array splices", "2022-12-26T18:41:59Z"
As a sort of inverse of array slicing,
var C: [1..4] int;
ref A = C[1..2];
ref B = C[3..4];
Would it be possible/feasible/useful to support constructing something like an array slice that instead is "backed by" two or more arrays?
var A: [1..2] int;
var B: [3..4] int;
ref C = splice(A, B);
(Requiring A
and B
to have suitable index sets to result in a legal rectangular domain when joined?)
(Inspired by this discourse question on Array Concatenation.)
1 Like