map -package:vector is:exact -package:base -package:containers -package:regex-tdfa package:foldl

Fold pairs into a map.