Simple Arrays

Jeanne A. E. DeVoto revolution at jaedworks.com
Mon Jan 11 08:58:31 EST 2010


At 9:34 AM -0800 1/10/2010, Jim Ault wrote:
>Yours is not the same syntax as the example in the docs
>
>put  1 into myArray[1,1]
>put  2 into myArray[1,2]
>put  3 into myArray[2,1]
>put  4 into myArray[2,2]
>
>But theirs does not make sense to me, since "1,1" is like "1comma1"
>or "1a1" if all keys are strings (except when they fall into a
>special category of sequential integers)


The transpose function and its documentation are both pretty ancient, 
and date from before the time when Rev had true multidimensional 
arrays. Back in the olden days (cough), that style of key was how you 
emulated multidimensional arrays, and transpose was implemented to 
make that a little easier.
-- 
Jeanne A. E. DeVoto, Transcript Language Curmudgeon
revolution at jaedworks.com
http://www.jaedworks.com



More information about the use-livecode mailing list