map -package:dlist -package:basement -package:imports is:exact -package:os-string package:foldl

Fold pairs into a map.