R.E. Boss wrote:
> How do I realize without boxing (performance reasons)
>    ;@:(<@i."0) i.5
> 0 0 1 0 1 2 0 1 2 3

Alternate formulations, which do not use boxing, are
possible.  For example:
   (#&1"0 #&, i."0) i.5
0 0 1 0 1 2 0 1 2 3

However, "without boxing" need not mean "better
performance".  (And does not, in this case.)

-- 
Raul

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

Reply via email to