toolshed-0.18.0.1: Ill-defined library.

Safe HaskellSafe
LanguageHaskell2010

ToolShed.Data.Quadruple

Contents

Description

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

getFirst :: (a, b, c, d) -> a Source #

Access the first datum from the specified quadruple.

getSecond :: (a, b, c, d) -> b Source #

Access the second datum from the specified quadruple.

getThird :: (a, b, c, d) -> c Source #

Access the third datum from the specified quadruple.

getFourth :: (a, b, c, d) -> d Source #

Access the fourth datum from the specified quadruple.

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.