alterF :: (Functor f, Eq k, Hashable k) => (Maybe v -> f (Maybe v)) -> k -> InsOrdHashMap k v -> f (InsOrdHashMap k v) Source #
Alter a hashmap using a function that can fail, in which case the entire operation fails.
(Maybe a version with the key also being passed to the function could be useful.)