Convenience functions for working with Dict
Keep elements which fail to satisfy the predicate.
This is functionally equivalent to Dict.filter (not << predicate) dict.
removeWhen (\c v -> v == 1) Dict.fromList [("Mary", 1), ("Jack", 2), ("Jill", 1)] == Dict.fromList [("Jack", 2)]Keep a key-value pair exactly if its key does not appear in the set.
Keep a key-value pair exactly if its key appears in the set.
Takes a key-fn and a list, creates a
Dictwhich maps the key returned from key-fn, to a list of matching elements.