FiniteCategories-0.1.0.0: Finite categories and usual categorical constructions on them.
CopyrightGuillaume Sabbagh 2021
LicenseGPL-3
Maintainerguillaumesabbagh@protonmail.com
Stabilityexperimental
Portabilityportable
Safe HaskellSafe-Inferred
LanguageHaskell2010

Utils.Tuple

Description

Utilitary functions for tuples.

Synopsis
  • fst3 :: (a, b, c) -> a
  • snd3 :: (a, b, c) -> b
  • trd3 :: (a, b, c) -> c
  • uncurry3 :: (a -> b -> c -> d) -> (a, b, c) -> d

Documentation

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

Returns the first element of a triplet.

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

Returns the second element of a triplet.

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

Returns the third element of a triplet.

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

Uncurry 3 arguments.