lambdacube-core-0.2.0: LambdaCube 3D IR

Safe HaskellSafe-Inferred
LanguageHaskell2010

LambdaCube.Core.Util.BiMap

Documentation

data BiMap a Source

Constructors

BiMap (Map a Int) (IntMap a) 

Instances

(Ord a, Read a) => Read (BiMap a) 
Show a => Show (BiMap a) 

lookup_key :: Ord a => a -> BiMap a -> Maybe Int Source

lookup_val :: Int -> BiMap a -> a Source

insert :: Ord a => a -> BiMap a -> (Int, BiMap a) Source