Scans over the Map with scanner function, a stateful computation.
Map
scanner
Function to process output R from value with accumulating state A.
R
A
The last accumulating state and new scanned Map.
Scans over the
Mapwithscannerfunction, a stateful computation.