Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
This module defines IntToIntMap
, a variant of IntMap
in which the
values are fixed to Int
.
We make use of this structure in ReprUnionFind
to
improve performance by a constant factor
Synopsis
- data IntToIntMap = Nil
- type Key = Int#
- type Val = Int#
- find :: Key -> IntToIntMap -> Val
- insert :: Key -> Val -> IntToIntMap -> IntToIntMap
- (!) :: IntToIntMap -> Key -> Val
- unliftedFoldr :: forall a {b :: TYPE ('BoxedRep 'Unlifted)}. (a -> b -> b) -> b -> [a] -> b
Documentation
data IntToIntMap Source #
A map of integers to integers
Nil | An empty |
Key type synonym in an IntToIntMap
Value type synonym in an IntToIntMap
find :: Key -> IntToIntMap -> Val Source #
Find the Val
for a Key
in an IntToIntMap
insert :: Key -> Val -> IntToIntMap -> IntToIntMap Source #
Insert a Val
at a Key
in an IntToIntMap