d =. 1$99       NB. Make insertion obvious
   d 0},&>1 2 3    NB. Reshape target to accommodate "d"
99
 2
 3
   ({.d) 0}1 2 3   NB. Reshape "d" to accommodate target
99 2 3
   (''$d) 0}1 2 3  NB. Reshape "d" to accommodate target
99 2 3


On Thu, Apr 2, 2009 at 12:18 PM, Matthew Brand <[email protected]>wrote:

> Something simple ... and a bit trivial I am stuck on ...
>
> d =. 1$1
>   d 0} 1 2 3
> |rank error
>
> What can I do to d to make its shape fit into 0} 1 2 3?
>
> e.g.
> (,d) 0} 1 2 3
> |rank error
> |   (,d)    0}1 2 3
>
> Does not work. Could somebody suggest what to use instead of , to make
> this work?
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>



-- 
Devon McCormick, CFA
^me^ at acm.
org is my
preferred e-mail
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to