Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
AUTHOR
- Dr. Alistair Ward
DESCRIPTION
- Miscellaneous operations on triples.
CAVEAT
- Import fully qualified, since some identifiers clash with
Quadruple
.
Synopsis
- curry3 :: ((a, b, c) -> result) -> a -> b -> c -> result
- uncurry3 :: (a -> b -> c -> result) -> (a, b, c) -> result
- getFirst :: (a, b, c) -> a
- getSecond :: (a, b, c) -> b
- getThird :: (a, b, c) -> c
- mutateFirst :: (a -> a') -> (a, b, c) -> (a', b, c)
- mutateSecond :: (b -> b') -> (a, b, c) -> (a, b', c)
- mutateThird :: (c -> c') -> (a, b, c) -> (a, b, c')
Functions
Accessors
Mutators
mutateFirst :: (a -> a') -> (a, b, c) -> (a', b, c) Source #
Operate on first datum.
mutateSecond :: (b -> b') -> (a, b, c) -> (a, b', c) Source #
Operate on second datum.
mutateThird :: (c -> c') -> (a, b, c) -> (a, b, c') Source #
Operate on third datum.