Here's another variant.  This one takes an insertion mask argument
which is the number of elements to insert after the given position,
and inserts a single element (which may be inserted arbitrarily many
times):

   insm=:1 :(':';'(1 j.m)#!.x y')
   '_' 1 0 3 0 insm 'test'
t_es___t

Or, more directly:
   (1 j.1 0 3 0) #!.'_' test
t_es___t

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

Reply via email to