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

Fold pairs into a map.