> That's an interesting idea -- I have not played with /: on complex > arguments before (it looks like the rules for sorting complex > arguments are analogous to rules for sorting arrays of two element > lists.
See: http://www.jsoftware.com/help/dictionary/d422.htm http://www.jsoftware.com/jwiki/Essays/The_TAO_of_J ----- Original Message ----- From: Raul Miller <[EMAIL PROTECTED]> Date: Thursday, August 23, 2007 14:14 Subject: Re: [Jprogramming] insert item To: Programming forum <[email protected]> > On 8/23/07, Dan Baronet <[EMAIL PROTECTED]> wrote: > > How about using /: as in > > ins=: 1 : 0 > > : > > (/:(1+j.m),i.#y){x,y > > ) > > That's an interesting idea -- I have not played with /: on complex > arguments before (it looks like the rules for sorting complex > arguments are analogous to rules for sorting arrays of two element > lists. In other words: > /: (1+j.m),i.#y > is equivalent to > /: (1,.m),(i.#y),.0 > > That said, I think this idea needs more consideration: > insb=: 1 : 0 > : > (/:(1+j.m),i.#y){x,y > ) > 'AB' 0 3 insb 'ccccc' > cAcBccc > > [But I am too distracted right now to put the thought into this > that it deserves.] ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
