[Jprogramming] indices
bill lam
bbill.lam at gmail.com
Mon Sep 3 22:07:23 HKT 2007
not sure if you mean successive delta,
0,+/\(}:z)~:}.z
0 0 1 2 2 2 3 3 4 4
or in tacit form
(0 , [: +/\ }: ~: }.) z
0 0 1 2 2 2 3 3 4 4
adam dunne wrote:
> NB.suppose i have a list:
> z=.5 5 2 20 20 20 60 60 2 2
> =z
> 1 1 0 0 0 0 0 0 0 0
> 0 0 1 0 0 0 0 0 1 1
> 0 0 0 1 1 1 0 0 0 0
> 0 0 0 0 0 0 1 1 0 0
> NB.how can i generate a list of what will be indices:
> NB. 0 0 1 2 2 2 3 3 4 4
> NB.from original list
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
--
regards,
bill
More information about the Programming
mailing list