Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
AUTHOR
- Dr. Alistair Ward
DESCRIPTION
- Miscellaneous operations on quadruples.
CAVEAT
- Import fully qualified, since some identifiers clash with
Triple
.
Synopsis
- curry4 :: ((a, b, c, d) -> result) -> a -> b -> c -> d -> result
- uncurry4 :: (a -> b -> c -> d -> result) -> (a, b, c, d) -> result
- getFirst :: (a, b, c, d) -> a
- getSecond :: (a, b, c, d) -> b
- getThird :: (a, b, c, d) -> c
- getFourth :: (a, b, c, d) -> d
- mutateFirst :: (a -> a') -> (a, b, c, d) -> (a', b, c, d)
- mutateSecond :: (b -> b') -> (a, b, c, d) -> (a, b', c, d)
- mutateThird :: (c -> c') -> (a, b, c, d) -> (a, b, c', d)
- mutateForth :: (d -> d') -> (a, b, c, d) -> (a, b, c, d')
Functions
curry4 :: ((a, b, c, d) -> result) -> a -> b -> c -> d -> result Source #
Extends the concept of curry
.
uncurry4 :: (a -> b -> c -> d -> result) -> (a, b, c, d) -> result Source #
Extends the concept of uncurry
.
Accessors
Mutators
mutateFirst :: (a -> a') -> (a, b, c, d) -> (a', b, c, d) Source #
Operate on first datum.
mutateSecond :: (b -> b') -> (a, b, c, d) -> (a, b', c, d) Source #
Operate on second datum.
mutateThird :: (c -> c') -> (a, b, c, d) -> (a, b, c', d) Source #
Operate on third datum.
mutateForth :: (d -> d') -> (a, b, c, d) -> (a, b, c, d') Source #
Operate on third datum.