Railo 4.2 Reference
Choose a function:

Function COLLECTIONREDUCE

Iterates over every entry of the collection and calls the closure with every element.
      This function will reduce the array to a single value and will return the value.

Beispiel

collectionreduce(object collection,function closure,[object initalValue]):any

Argumente

Die Argumente für diese Funktion sind fest vorgegeben. Ausser den nachfolgenden Argumenten dürfen keine weiteren verwendet werden.
Name Typ Required Beschreibung
collection object  Yes collection to iterate  
closure function  Yes function/closure that implements the following constructor [function(... depending on the given collection ...):any].  
initalValue object  No inital value passed as part of the first closure call