Reduce a tree to a value of type B by applying the given reducer repeatedly over each element and the previous result of the reducer.
B
The tree type.
The tree being reduced.
The initial value will appear as the previous value in the first iteration of the reducer.
initial
Reduce a tree to a value of type
Bby applying the given reducer repeatedly over each element and the previous result of the reducer.Type Param: A
The tree type.
Param: self
The tree being reduced.
Param: initial
The initial value will appear as the previous value in the first iteration of the reducer.
Returns
initialvalue.