valueDiff for arrays?

Alex Tweedly alex at tweedly.net
Tue Aug 7 20:47:25 EDT 2018


On 07/08/2018 23:45, Mark Waddingham via use-livecode wrote:
> On 2018-08-07 23:31, Mark Wieder via use-livecode wrote:
>> does that take it out of the 'special' category?
>
> Yes - unless the array's first key is 1, and it then has all integer 
> keys up to and including its number of elements  then it is not 
> considered a sequence array.
Is there an easy way to test whether an array is (currently) a sequence 
array ?

something easier than
     put the extents of tArray into tmp
     if item 1 of tmp = 1 AND item 2 of tmp = the number of elements in 
tArray then
        -- sequence !?
     else
        -- arbitrary array
      end if

- Alex.






More information about the use-livecode mailing list