Each()
call the given UDF/Closure with every entry (key/value) in the given collection.
Status:
Each( collection=object, closure=function, parallel=boolean, maxThreads=number );
Returns: void
Examples
function squareRoot(number) {
Dump(Sqr(number));
}
numbers = [16, 64, 400];
Each(numbers, squareRoot);
See also
- Collections
- Threads
- Search Issue Tracker
- Search Lucee Test Cases (good for further, detailed examples)