> Ben Gorte wrote:
> > I use an adverb called ins that behaves like } , except that it inserts :)

> In the argument to the adverb, does 1 ins refer to the item at index 1 in
> the argument, or the empty space between item 1 and item 2, or the empty
> space between item 0 and item 1, or what?

The index is where the new thing will go, so what was there will move:
 
  88 (1) ins i.10
0 88 1 2 3 4 5 6 7 8 9

When I have multiple indices, they refer the places in the "old" array:

   888 (1 3 7) ins i.10
0 888 1 2 888 3 4 5 6 888 7 8 9

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to