Railo 4.2 Reference
Choose a function:

Function STRUCTREDUCE

Iterates over every entry of the given struct and calls the closure with every key/value.
      This function will reduce the struct to a single value and will return this value.

Beispiel

structreduce(struct struct,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
struct struct  Yes struct to iterate  
closure function  Yes function/closure that implements the following constructor [function(any result, string key, object value[, struct struct]):any].  
initalValue object  No inital value passed as part of the first closure call