Arrays in Rev
rcozens at pon.net
Sat Dec 11 09:48:00 CST 2004
>But how do they perform the same functions? For instance with a
>multi-level nested repeat loop iterating over the contents with a
>real multi-dimensional array? Or is there some equally convoluted
>code to do that?
Troy, et al:
Look at the arrayMath & matrixMath handlers in Serendipity Library
The arrayMath function returns the source array with a specific value
& operator applied to each element. Operators supported are
The matrixMath function returns an array resulting from the
application of an operator and one element of the array on the
corresponding element in a matching array. Operators supported are
+,-,*,/,div,mod,^,atan2,bitAnd,bitOr, and bitXOr.
My pseudo multidimensional arrays are currently slower than accessing
each element by key; but the functionality works.
Rob Cozens, Staff Conservator
Mendonoma Marine Life Conservancy
"Knowledge of the oceans is more than a matter of curiosity.
Our very survival may depend upon it."
-- John Fitzgerald Kennedy, 1961
More information about the use-livecode