skeletest
Safe HaskellNone
LanguageGHC2021

Skeletest.Internal.Utils.Map

Synopsis

Documentation

findOrEmpty :: forall {k1} k2 t (a :: k1). (Ord k2, IsList (t a)) => k2 -> Map k2 (t a) -> t a Source #

adjustNested :: (Ord k, Foldable t, IsList (t a)) => (t a -> t a) -> k -> Map k (t a) -> Map k (t a) Source #

Same as adjust, except defaulting to an empty structure if it doesn't exist, and deleting the key if the adjusted value is empty.