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

Safe HaskellNone

Lvm.Common.IdMap

Documentation

data IdMap a Source

data Id Source

Instances

singleMap :: Id -> a -> IdMap aSource

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

insertMap :: Id -> a -> IdMap a -> IdMap aSource

extendMap :: Id -> a -> IdMap a -> IdMap aSource

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

findMap :: Id -> IdMap a -> aSource

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

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

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

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

updateMap :: Id -> a -> IdMap a -> IdMap aSource

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

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

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

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