CollectionEach()
call the given UDF/Closure with every entry (key/value) in the given collection.
CollectionEach( collection=object, closure=function );
Returns: void
Examples
people = [ { name = "Alice", age = 32 }, { name = "Bob", age = 29 }, { name = "Eve", age = 41 }];
CollectionEach(people, function(p) { dump(p.name); });
// member function
people.each(function(p) {
dump(p.name);
});
See also
- Collections
- Search Issue Tracker
- Search Lucee Test Cases (good for further, detailed examples)