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

Fold pairs into a map.