mapAccumL package:monoidmap-internal

Threads an accumulating argument through the map in ascending order of keys. Satisfies the following property:
mapAccumL f s m ==
fmap fromMap (Traversable.mapAccumL f s (toMap m))
Threads an accumulating argument through the map in ascending order of keys. Satisfies the following property:
mapAccumLWithKey f s m ==
fmap fromMap (Map.mapAccumWithKey f s (toMap m))