lvmlib-1.1: The Lazy Virtual Machine (LVM).

Safe HaskellNone
LanguageHaskell98

Lvm.Common.IdMap

Documentation

data IdMap a Source

data Id Source

Instances

singleMap :: Id -> a -> IdMap a Source

mapMap :: (a -> b) -> IdMap a -> IdMap b Source

insertMap :: Id -> a -> IdMap a -> IdMap a Source

extendMap :: Id -> a -> IdMap a -> IdMap a Source

insertMapWith :: Id -> a -> (a -> a) -> IdMap a -> IdMap a Source

findMap :: Id -> IdMap a -> a Source

filterMap :: (a -> Bool) -> IdMap a -> IdMap a Source

listFromMap :: IdMap a -> [(Id, a)] Source

mapMapWithId :: (Id -> a -> b) -> IdMap a -> IdMap b Source

unionMapWith :: (a -> a -> a) -> IdMap a -> IdMap a -> IdMap a Source

updateMap :: Id -> a -> IdMap a -> IdMap a Source

foldMap :: (a -> b -> b) -> b -> IdMap a -> b Source

filterMapWithId :: (Id -> a -> Bool) -> IdMap a -> IdMap a Source

mapFromList :: [(Id, a)] -> IdMap a Source

diffMap :: IdMap a -> IdMap a -> IdMap a Source

foldMapWithId :: (Id -> a -> b -> b) -> b -> IdMap a -> b Source