[Jprogramming] Something almost like i.

Devon McCormick devonmcc at gmail.com
Thu Mar 1 01:14:29 HKT 2007


Maybe I need more coffee, but I'm not clear on what you're trying to do
here.


On 2/28/07, Raul Miller <rauldmiller at gmail.com> wrote:
>
> 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
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>



-- 
Devon McCormick
^me^ at acm.
org is my
preferred e-mail


More information about the Programming mailing list