Hi Alex,

I think that the Itemize (,:) primitive is what you are looking for:

r=. i.4
   $ r
4
   $ ,: r
1 4

Also works in higher dimensions

   r=. i.2 3 4
   $ r
2 3 4
   $ ,: r
1 2 3 4

Cheers, bob

On 2012-12-11, at 9:20 AM, Alex Giannakopoulos wrote:

>   v2m =. ] $~ 1,$

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to