map -is:exact -package:dlist is:exact -package:containers package:foldl

Fold pairs into a map.