RSolve-2.0.0.0

Safe HaskellSafe
LanguageHaskell2010

RSolve.MapLike

Documentation

class MapLike m k v | m -> k, m -> v where Source #

Minimal complete definition

lookup, insert, adjust, member, update

Methods

lookup :: k -> m -> Maybe v Source #

(!) :: m -> k -> v Source #

insert :: k -> v -> m -> m Source #

adjust :: (v -> v) -> k -> m -> m Source #

member :: k -> m -> Bool Source #

update :: (v -> Maybe v) -> k -> m -> m Source #

Instances
Eq k => MapLike [(k, v)] k v Source # 
Instance details

Defined in RSolve.MapLike

Methods

lookup :: k -> [(k, v)] -> Maybe v Source #

(!) :: [(k, v)] -> k -> v Source #

insert :: k -> v -> [(k, v)] -> [(k, v)] Source #

adjust :: (v -> v) -> k -> [(k, v)] -> [(k, v)] Source #

member :: k -> [(k, v)] -> Bool Source #

update :: (v -> Maybe v) -> k -> [(k, v)] -> [(k, v)] Source #

Ord k => MapLike (Map k v) k v Source # 
Instance details

Defined in RSolve.MapLike

Methods

lookup :: k -> Map k v -> Maybe v Source #

(!) :: Map k v -> k -> v Source #

insert :: k -> v -> Map k v -> Map k v Source #

adjust :: (v -> v) -> k -> Map k v -> Map k v Source #

member :: k -> Map k v -> Bool Source #

update :: (v -> Maybe v) -> k -> Map k v -> Map k v Source #