map -package:basement -package:hedgehog is:exact -package:dlist -package:imports package:foldl

Fold pairs into a map.