r =. 0 2 2 1 2 0 2 1 1 2 0 2 1 1 1 2 1 0 1 0 2 1 0 0 0 2 2 2 0 1

   ([:(#~*)@:(#;._1) 1 0,2=/\]) r
2 5 4 8 1 2


R.E. Boss


-----Oorspronkelijk bericht-----
Van: [email protected]
[mailto:[email protected]] Namens David Vincent-Jones
Verzonden: maandag 16 maart 2009 22:37
Aan: Programming forum
Onderwerp: Re: [Jprogramming] Interval between Repetitions

Thanks all for some great ideas ... may take a while to digest!

David

On Mon, 2009-03-16 at 17:18 -0400, Raul Miller wrote:
> On Mon, Mar 16, 2009 at 5:14 PM, Henry Rich <[email protected]> wrote:
> >    ([ * +)/\.&.|. 1 , 2 ~:/\ r
> > 1 2 0 1 2 3 4 5 0 1 2 3 4 0 0 1 2 3 4 5 6 7 8 0 0 1 0 0 1 2
> 
> Nice.
> 
> Or,
>    -.&0 ([ * +)/\.&.|. 1 , 2 ~:/\ r
> 

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to