map -package:ghc -is:exact -package:dense-linear-algebra -package:containers is:exact package:foldl

Fold pairs into a map.