Re: Sequences

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

>    sequence dataarray
>    dataarray = repeat(repeat(repeat(repeat(0,3),4),6),3)
> Note the reverse order: 3 4 6 3

I didn't realize that it was that easy.

> In BASIC subscripts start at 0. In Euphoria they start at 1.

I always did think that BASIC subscripting was a bit odd when it came
to arrays. Starting at one seems more logical to me.

> In Euphoria you aren't limited to "rectangular"
> shapes for your multi-dimensional arrays.
> For example, each "row" of a 2-d array (sequence) could be
> a different length. Also, in Euphoria you can grow or shrink
> your multi-dimensional sequence along any dimension at any time
> without having to discard all your data, like some Basics require
> when you "redim".

That could come in handy. Thanks for the help.

Greg.

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

Search



Quick Links

User menu

Not signed in.

Misc Menu