Re: 2.6 feature request: foreach (off topic)

new topic     » topic index » view thread      » older message » newer message

Me wrote:

<snip>

> With Euphoria, we don't need place-holders. Of course we use something
> like a[x][y] to access the data. We just have to take a little more care
> of the indexes, when our data have the form of a "triangle" rather than
> a "rectangle":
>
>    a = {
>         {12},
>         { 7, 9},
>         {15, 6,14}
>        }
>
>
> When an array with n*n elements is needed in BASIC, we only need n!
> elements in Euphoria.

Oooops!
Fortunately,  n!  is wrong. smile
Of course it must be  n*(n+1)/2  instead.

<snip>

Regards,
   Juergen

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu