Manipulating parts of a multi-dimensional array

dunbarx at aol.com dunbarx at aol.com
Sun Jun 16 15:37:29 EDT 2013


Jacque.


You are asking for a function "the elements of key[yourKey]"


or


"the elements of key[yourKey1][yourkey2][yourKey3}"


This should be a feature request, like yesterday.


Craig




-----Original Message-----
From: J. Landman Gay <jacque at hyperactivesw.com>
To: LiveCode Mailing List <use-livecode at lists.runrev.com>
Sent: Sun, Jun 16, 2013 3:27 pm
Subject: Manipulating parts of a multi-dimensional array


I have a big array with lots of dimensions. Sometimes I need to work 
with a "sub-dimension" only. For example:

array[a][b][c][d]

Each of those elements contains many other elements:

[c][x][y][z]


which each contain more elements:

[c][x][1][2][3]

Suppose I only want to work with [c][x] and all its sub-dimensions. Is 
there an efficient way to extract that into its own array without 
looping through all the [c] keys?

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com

_______________________________________________
use-livecode mailing list
use-livecode at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

 



More information about the use-livecode mailing list