|
Data.Strict.Tuple | Portability | portable | Stability | experimental | Maintainer | Roman Leshchinskiy <rl@cse.unsw.edu.au> |
|
|
|
|
|
Description |
Strict pairs.
Same as regular Haskell pairs, but (x :*: _|_) = (_|_ :*: y) = _|_
|
|
Synopsis |
|
|
|
Documentation |
|
data Pair a b |
The type of strict pairs.
| Constructors | | Instances | |
|
|
fst :: Pair a b -> a |
Extract the first component of a strict pair.
|
|
snd :: Pair a b -> b |
Extract the second component of a strict pair.
|
|
curry :: (Pair a b -> c) -> a -> b -> c |
Curry a function on strict pairs.
|
|
uncurry :: (a -> b -> c) -> Pair a b -> c |
Convert a curried function to a function on strict pairs.
|
|
Produced by Haddock version 0.8 |