map -package:base-compat-batteries -package:containers is:exact -package:filepath package:foldl

Fold pairs into a map.