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.
Ben
_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode