[Jprogramming] Something almost like i.

Raul Miller rauldmiller at gmail.com
Thu Mar 1 00:53:36 HKT 2007


I need something almost like i. -- well, the ravel of the transpose
of i. of a two element vector -- but not quite.  I keep tripping over
that "not quite" part.

   i. 19(],>.@%)3
 0  1  2  3  4  5  6
 7  8  9 10 11 12 13
14 15 16 17 18 19 20

   3 mysteryverb 19
 0  1  2  3  4  5 6
 7  8  9 10 11 12 _
13 14 15 16 17 18 _

What I actually need is
  solution=: [: -.&_ [: , [: |: mysteryverb
   3 solution 19
0 7 13 1 8 14 2 9 15 3 10 16 4 11 17 5 12 18 6

Or,
   3 solution 5
0 2 4 1 3

   4 solution 5
0 2 3 4 1

Is that even clear enough to nail down what I'm
looking for?

Thanks,

-- 
Raul


More information about the Programming mailing list