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

Fold pairs into a map.