Folds the Map into an accumulated X with folding computation from the last entry.
Map
X
Function to fold an item and accumulated value. Also the key will be passed to.
Accumulated result.
Folds the
Mapinto an accumulatedXwith folding computation from the last entry.