map -package:base-compat -package:basement -package:invertible is:exact -package:containers package:foldl

Fold pairs into a map.