v←(1 2)(3 4)
and another nested vector say n←(1 2 3)(4 5 6)(7 8 9)
. Now suppose I have a vector of indices into n like i←2 3
, what is the most concise/idiomatic way replace the elements of n at i with corresponding elements of v, so that in this case I get n
to be (1 2 3)(1 2)(3 4)
?