base-4.6.0.0: Basic libraries

Portabilityportable
Stabilityexperimental
Maintainerlibraries@haskell.org
Safe HaskellTrustworthy

Data.Tuple

Description

The tuple data types, and associated functions.

Synopsis

Documentation

fst :: (a, b) -> aSource

Extract the first component of a pair.

snd :: (a, b) -> bSource

Extract the second component of a pair.

curry :: ((a, b) -> c) -> a -> b -> cSource

curry converts an uncurried function to a curried function.

uncurry :: (a -> b -> c) -> (a, b) -> cSource

uncurry converts a curried function to a function on pairs.

swap :: (a, b) -> (b, a)Source

Swap the components of a pair.