toolshed-0.18.0.1: Ill-defined library.

Safe HaskellSafe
LanguageHaskell2010

ToolShed.Data.Triple

Contents

Description

AUTHOR
Dr. Alistair Ward
DESCRIPTION
Miscellaneous operations on triples.
CAVEAT
Import fully qualified, since some identifiers clash with Quadruple.
Synopsis

Functions

curry3 :: ((a, b, c) -> result) -> a -> b -> c -> result Source #

Extends the concept of curry.

uncurry3 :: (a -> b -> c -> result) -> (a, b, c) -> result Source #

Extends the concept of uncurry.

Accessors

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

Access the first datum from the specified triple.

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

Access the second datum from the specified triple.

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

Access the third datum from the specified triple.

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.