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.]
Thanks,
--
Raul
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm