monad-memo-0.4.1: Memoization monad transformer

Portabilitynon-portable (multi-param classes, functional dependencies)
Stabilityexperimental
Maintainereduard.sergeev@gmail.com
Safe HaskellSafe-Inferred

Data.MapLike.Instances

Description

Defines MapLike instances declaration for standard data types

Synopsis

Documentation

class MapLike c k v | c -> k, c -> v whereSource

An abstract interface to the container which can store v indexed by k

Methods

lookup :: k -> c -> Maybe vSource

add :: k -> v -> c -> cSource

Instances

MapLike (IntMap v) Int v

Data.IntMap is usually more efficient that Data.Map if k :: Int

Ord k => MapLike (Map k v) k v

Data.Map is a default implementation (not the fastest but well-known)