stgi-1.0.1: Educational implementation of the STG (Spineless Tagless G-machine)

Safe HaskellNone
LanguageHaskell2010

Stg.Prelude.Tuple

Synopsis

Documentation

fst :: Program Source

First element of a tuple.

fst : (a,b) -> a

snd :: Program Source

Second element of a tuple.

snd : (a,b) -> a

curry :: Program Source

Convert an uncurried function to a curried one.

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

uncurry :: Program Source

Convert a curried function to an uncurried one.

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

swap :: Program Source

Swap the elements of a tuple.

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