Or, equivalently for those examples: Amend=:(0{::[)`(1{::[)`]}
(To make this equivalent for all examples, change the 1 to _1) FYI, -- Raul On Wed, Jun 28, 2017 at 3:47 AM, Erling Hellenäs <erl...@erlinghellenas.se> wrote: > If you don't want to write a new function when you want to insert something > else, you can do like this: > > Amend=:([:>[:{.[)`([:>[:{:[)`] } > (42;1) Amend 1 2 3 > 1 42 3 > (41;2) Amend 0 1 2 > 0 1 41 > (41 42;1 2) Amend 0 1 2 > 0 41 42 > > Cheers Erling > > > On 2017-06-23 14:54, Rudolf Sykora wrote: >>> >>> put =: (42"_)`[`]} >> >> I once again thank all who both answered and supplied >> extra information on my question. >> >> Ruda >> ---------------------------------------------------------------------- >> For information about J forums see http://www.jsoftware.com/forums.htm > > > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm