[Jprogramming] Sequence generation

Björn Helgason gosinn at gmail.com
Fri Sep 29 00:56:48 UTC 2017


'0' -.~ ,'),',"1~ '(',"1 ": +\4+i.10

just add + here and there

On 28 Sep 2017 18:34, "Skip Cave" <skip at caveconsulting.com> wrote:

> What is a good way to generate this sequence in J?
>
>  4,(4+5),(4+5+6),(4+5+6+7),(4+5+6+7+8)+.....
>
> Show one way using i. and insert.
>
> Show another way using recursion.
>
> Skip
>
> Skip Cave
> Cave Consulting LLC
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm


More information about the Programming mailing list