Algorithm.foldr
Evaluates f(e1,f(e2, ...,f(en,value))) using values from an enumerable. The enumerable may be a container, a range, or a builtin-list.
Arguments
The
enumerable
provides the first arguments to function calls, can be a Container, a Range, or a builtin-list.value0
is the second argument for the inner function call.The
callable
has the following stack notation:( inputValue0 inputValue1 -- outputValue )
Return values
value1
is the resulting value.
Complexity
Depends on the enumerable and the callable.
Example
Output:
1040302