[Jprogramming] A permutation of i.y

Brian Schott schott.brian at gmail.com
Sat Apr 30 23:40:01 HKT 2011


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 <rauldmiller at gmail.com> 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=)


More information about the Programming mailing list