Use 0{d or ''$d
----- Original Message -----
From: Matthew Brand <[email protected]>
Date: Thursday, April 2, 2009 9:19
Subject: [Jprogramming] trivial reshaping question
To: Programming forum <[email protected]>
> 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
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm