polymap-0.1.0.0: Polydirectional maps

Copyright(c) 2015 David Farrell
LicensePublicDomain
Stabilityunstable
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe
LanguageHaskell2010

Data.PolyMap.Storage

Description

Storage typeclass for polymaps.

Documentation

class (Monoid (s a), Foldable s) => Storage s a where Source

Methods

singleton :: a -> s a Source

lookupIndex :: Eq a => a -> s a -> Maybe Int Source

lookupElem :: Int -> s a -> Maybe a Source