map -package:basement -package:imports is:exact -package:base-compat package:foldl

Fold pairs into a map.