Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data TypeMap d
- empty :: TypeMap '[]
- index :: forall a d. KnownNat (Index a d) => TypeMap d -> Lookup a d
- cons :: forall a d b. b -> TypeMap d -> TypeMap ('(a, b) ': d)
- (<|) :: forall a d b. b -> TypeMap d -> TypeMap ('(a, b) ': d)
- snoc :: forall a d b. Last d ~ '(a, b) => TypeMap (Init d) -> b -> TypeMap d
- (|>) :: forall a d b. Last d ~ '(a, b) => TypeMap (Init d) -> b -> TypeMap d
Documentation
cons :: forall a d b. b -> TypeMap d -> TypeMap ('(a, b) ': d) infixr 5 Source #
Add an element to the beginning of a map. O(log n)