fromListWithL : (a -> a -> a) -> [(Text, a)] -> TextMapaCreate a map from a list of key/value pairs with a combining
function. The combining function is only used when a key appears multiple
times in the list and it takes two arguments: the first one is the new value
being inserted at that key and the second one is the value accumulated so
far at that key.
Examples:
fromListWithR : (a -> a -> a) -> [(Text, a)] -> TextMapaCreate a map from a list of key/value pairs like fromListWithL
with the combining function flipped. Examples:
insert : Text -> a -> TextMapa -> TextMapaInsert a new key/value pair in the map. If the key is already
present in the map, the associated value is replaced with the
supplied value.
insertWith : (v -> v -> v) -> Text -> v -> TextMapv -> TextMapvInsert a new key/value pair in the map. If the key is already
present in the map, it is combined with the previous value using the given function
f new_value old_value.
merge : (Text -> a -> Optionalc) -> (Text -> b -> Optionalc) -> (Text -> a -> b -> Optionalc) -> TextMapa -> TextMapb -> TextMapcMerge two maps. merge f g h x y applies f to all key/value pairs
whose key only appears in x, g to all pairs whose key only appears
in y and h to all pairs whose key appears in both x and y.
In the end, all pairs yielding Some are collected as the result.