Yet another approach?

   foo0=: +/@:!@:>:@:i.
   foo =: (<:@]-&foo0-~) A. i.@]
   3 foo 9
1 2 0 3 4 5 6 7 8


On Fri, Apr 29, 2011 at 10:05 AM, Raul Miller <[email protected]> wrote:
> This might be what you want:
>
>   foo=: (C.~ <)&i.~
>
>   3 (C.~ <)&i.~ 9
> 1 2 0 3 4 5 6 7 8
>
> --
> Raul


-- 
(B=)
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to