map -package:bimap -package:containers is:exact -package:dlist -package:hedgehog package:foldl

Fold pairs into a map.