@JohnE do you see a reasonable definition of recursive de-structuring assignment? IIUC the way you define "rest" makes that impossible except for tail recursion ...
@coltim there are different systems of terminology, and confusingly they can be different for different versions of k. i think k9 went in that direction - calling only list# "reshape", but then they removed it from the language and.. i haven't been following the developments since then
what's the best way to insert a value into a list at a certain index, keeping all the other values? e.g. changing 1 2 3 4 to 1 2 8 8 3 4 by inserting two 8's after the second value
@ngn oooh. I'm working with strings so there's another level of nesting to figure out... it seems like something like {(x,,y)@<(!#x),z}[("A header";"Another header");"--------";0] works though
meh, it's a lot longer than {(*x;y),1_x} (I just want to insert y after the first value in x)