Safe Haskell | None |
---|
- newtype AtomMap a = MkAtomMap {
- fromAtomMap :: IntMap a
- type Key = Atom
- (!) :: AtomMap a -> Key -> a
- (\\) :: AtomMap a -> AtomMap b -> AtomMap a
- null :: [a] -> Bool
- size :: AtomMap a -> Int
- member :: Atom -> AtomMap a -> Bool
- notMember :: Key -> AtomMap a -> Bool
- lookup :: Atom -> AtomMap a -> Maybe a
- findWithDefault :: a -> Key -> AtomMap a -> a
- empty :: AtomMap a
- singleton :: Key -> a -> AtomMap a
- insert :: Atom -> a -> AtomMap a -> AtomMap a
- insertWith :: (a -> a -> a) -> Atom -> a -> AtomMap a -> AtomMap a
- insertWithKey :: (Key -> a -> a -> a) -> Key -> a -> AtomMap a -> AtomMap a
- insertLookupWithKey :: (Key -> a -> a -> a) -> Key -> a -> AtomMap a -> (Maybe a, AtomMap a)
- delete :: Key -> AtomMap a -> AtomMap a
- adjust :: (a -> a) -> Key -> AtomMap a -> AtomMap a
- adjustWithKey :: (Key -> a -> a) -> Key -> AtomMap a -> AtomMap a
- update :: (a -> Maybe a) -> Key -> AtomMap a -> AtomMap a
- updateWithKey :: (Key -> a -> Maybe a) -> Key -> AtomMap a -> AtomMap a
- updateLookupWithKey :: (Key -> a -> Maybe a) -> Key -> AtomMap a -> (Maybe a, AtomMap a)
- alter :: (Maybe a -> Maybe a) -> Key -> AtomMap a -> AtomMap a
- union :: AtomMap a -> AtomMap a -> AtomMap a
- unionWith :: (a -> a -> a) -> AtomMap a -> AtomMap a -> AtomMap a
- unionWithKey :: (Key -> a -> a -> a) -> AtomMap a -> AtomMap a -> AtomMap a
- unions :: [AtomMap a] -> AtomMap a
- unionsWith :: (a -> a -> a) -> [AtomMap a] -> AtomMap a
- difference :: AtomMap a -> AtomMap b -> AtomMap a
- differenceWith :: (a -> b -> Maybe a) -> AtomMap a -> AtomMap b -> AtomMap a
- differenceWithKey :: (Key -> a -> b -> Maybe a) -> AtomMap a -> AtomMap b -> AtomMap a
- intersection :: AtomMap a -> AtomMap b -> AtomMap a
- intersectionWith :: (a -> b -> a) -> AtomMap a -> AtomMap b -> AtomMap a
- intersectionWithKey :: (Key -> a -> b -> a) -> AtomMap a -> AtomMap b -> AtomMap a
- map :: (a -> b) -> AtomMap a -> AtomMap b
- mapWithKey :: (Atom -> a -> b) -> AtomMap a -> AtomMap b
- mapAccum :: (a -> b -> (a, c)) -> a -> AtomMap b -> (a, AtomMap c)
- mapAccumWithKey :: (a -> Key -> b -> (a, c)) -> a -> AtomMap b -> (a, AtomMap c)
- fold :: (a -> b -> b) -> b -> AtomMap a -> b
- foldWithKey :: (Key -> a -> b -> b) -> b -> AtomMap a -> b
- elems :: AtomMap a -> [a]
- keys :: AtomMap a -> [Atom]
- keysSet :: AtomMap a -> AtomSet
- assocs :: AtomMap a -> [(Key, a)]
- toList :: AtomMap a -> [(Atom, a)]
- fromList :: [(Atom, a)] -> AtomMap a
- fromListWith :: (a -> a -> a) -> [(Atom, a)] -> AtomMap a
- fromListWithKey :: (Key -> a -> a -> a) -> [(Key, a)] -> AtomMap a
- toAscList :: AtomMap a -> [(Key, a)]
- fromAscList :: [(Key, a)] -> AtomMap a
- fromAscListWith :: (a -> a -> a) -> [(Key, a)] -> AtomMap a
- fromAscListWithKey :: (Key -> a -> a -> a) -> [(Key, a)] -> AtomMap a
- fromDistinctAscList :: [(Key, a)] -> AtomMap a
- filter :: (a -> Bool) -> AtomMap a -> AtomMap a
- filterWithKey :: (Key -> a -> Bool) -> AtomMap a -> AtomMap a
- partition :: (a -> Bool) -> AtomMap a -> (AtomMap a, AtomMap a)
- partitionWithKey :: (Key -> a -> Bool) -> AtomMap a -> (AtomMap a, AtomMap a)
- mapMaybe :: (a -> Maybe b) -> AtomMap a -> AtomMap b
- mapMaybeWithKey :: (Atom -> a -> Maybe b) -> AtomMap a -> AtomMap b
- mapEither :: (a -> Either b c) -> AtomMap a -> (AtomMap b, AtomMap c)
- mapEitherWithKey :: (Key -> a -> Either b c) -> AtomMap a -> (AtomMap b, AtomMap c)
- split :: Key -> AtomMap a -> (AtomMap a, AtomMap a)
- splitLookup :: Key -> AtomMap a -> (AtomMap a, Maybe a, AtomMap a)
- isSubmapOf :: Eq a => AtomMap a -> AtomMap a -> Bool
- isSubmapOfBy :: (a -> b -> Bool) -> AtomMap a -> AtomMap b -> Bool
- isProperSubmapOf :: Eq a => AtomMap a -> AtomMap a -> Bool
- isProperSubmapOfBy :: (a -> b -> Bool) -> AtomMap a -> AtomMap b -> Bool
- maxView :: Monad m => AtomMap a -> m (a, AtomMap a)
- minView :: Monad m => AtomMap a -> m (a, AtomMap a)
- deleteMin :: AtomMap a -> AtomMap a
- deleteMax :: AtomMap a -> AtomMap a
- deleteFindMin :: AtomMap a -> ((Key, a), AtomMap a)
- deleteFindMax :: AtomMap a -> ((Key, a), AtomMap a)
- updateMin :: (a -> Maybe a) -> AtomMap a -> AtomMap a
- updateMax :: (a -> Maybe a) -> AtomMap a -> AtomMap a
- updateMinWithKey :: (Key -> a -> Maybe a) -> AtomMap a -> AtomMap a
- updateMaxWithKey :: (Key -> a -> Maybe a) -> AtomMap a -> AtomMap a
- minViewWithKey :: Monad m => AtomMap a -> m ((Key, a), AtomMap a)
- maxViewWithKey :: Monad m => AtomMap a -> m ((Key, a), AtomMap a)
- showTree :: Show a => AtomMap a -> String
- showTreeWith :: Show a => Bool -> Bool -> AtomMap a -> String
Map type
MkAtomMap | |
|
Operators
Query
findWithDefault :: a -> Key -> AtomMap a -> aSource
Construction
Insertion
insertWith :: (a -> a -> a) -> Atom -> a -> AtomMap a -> AtomMap aSource
Delete/Update
Combine
Union
unionsWith :: (a -> a -> a) -> [AtomMap a] -> AtomMap aSource
Difference
difference :: AtomMap a -> AtomMap b -> AtomMap aSource
Intersection
intersection :: AtomMap a -> AtomMap b -> AtomMap aSource
intersectionWith :: (a -> b -> a) -> AtomMap a -> AtomMap b -> AtomMap aSource
Traversal
Map
mapWithKey :: (Atom -> a -> b) -> AtomMap a -> AtomMap bSource
mapAccumWithKey :: (a -> Key -> b -> (a, c)) -> a -> AtomMap b -> (a, AtomMap c)Source
Fold
foldWithKey :: (Key -> a -> b -> b) -> b -> AtomMap a -> bSource
Conversion
Lists
fromListWith :: (a -> a -> a) -> [(Atom, a)] -> AtomMap aSource
fromListWithKey :: (Key -> a -> a -> a) -> [(Key, a)] -> AtomMap aSource
Ordered lists
fromAscList :: [(Key, a)] -> AtomMap aSource
fromAscListWith :: (a -> a -> a) -> [(Key, a)] -> AtomMap aSource
fromAscListWithKey :: (Key -> a -> a -> a) -> [(Key, a)] -> AtomMap aSource
fromDistinctAscList :: [(Key, a)] -> AtomMap aSource
Filter
Submap
Min/Max
deleteFindMin :: AtomMap a -> ((Key, a), AtomMap a)Source
deleteFindMax :: AtomMap a -> ((Key, a), AtomMap a)Source