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 <http://wecode.org/serendipity/>.

The arrayMath function returns the source array with a specific value & operator applied to each element. Operators supported are +,-,*,/,div,mod,^,log2,log10,acos,asin,atan,atan2,cos,sin,tan,bitAnd,bitOr, and bitXOr.

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
_______________________________________________
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to