Repeat For Each Iteration Order (was Re: use-livecode Digest, Vol 169, Issue 18)
benr_mc at cogapp.com
Fri Oct 13 03:06:44 EDT 2017
On 12/10/2017 18:16, Mark Waddingham via use-livecode wrote:
> - element chunks are ordered for arrays which are sequences*, unordered
> for all other arrays
> * An array is a sequence if: it has only integer keys, and keys range from 1
> up to the number of elements in the array.
> e.g. If the keys are 1, 2, 3, 4 - then that is a sequence; 0, 1, 2, 3 is
> not; 1, 3, 4 is not.
Ooh - I didn't know that! That's very useful, especially now that I've
switched to using the standard JSON library where we're frequently iterating
over such sequences.
More information about the Use-livecode