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