splice is a special form of the
? verb which takes 3 arguments.
xis the array to be modified.
(s;e)is a two element array indicating start index and end index
zis the replacement array.
In ngn/k, splice removes the portion of the array
e, exclusive of
e and inserts
z in that place.
?["abcd";3 3;"x"] "abcxd" ?["abcd";3 4;"x"] "abcx"