Very elementary question:
Is there a primitive verb which will insert a value in a list? That
is, given an index, a new value , and a list, the verb would insert
the value in the list after the index location.
for example if a=:2 3 5 6 and I want to insert a 4 after in the 3rd
position, I can say (2{.a) ,4 ,2}.a
Is there a primitive verb to do this? If not, what is the simplest
definition for doing this?
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm