map -package:basement -package:case-insensitive -package:imports is:exact package:foldl

Fold pairs into a map.