linear-base-0.4.0: Standard library for linear types.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Data.Tuple.Linear

Description

This module provides linear functions commonly used on tuples.

Documentation

fst :: Consumable b => (a, b) %1 -> a Source #

snd :: Consumable a => (a, b) %1 -> b Source #

swap :: (a, b) %1 -> (b, a) Source #

curry :: ((a, b) %p -> c) %q -> a %p -> b %p -> c Source #

uncurry :: (a %p -> b %p -> c) %q -> (a, b) %p -> c Source #