Re: Sequences
- Posted by Greg Harris <blackdog at MAIL.CDC.NET> Jan 15, 1997
- 799 views
> 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.