Sophie

Sophie

distrib > Mageia > 5 > i586 > media > core-release > by-pkgid > 6e204a966e8c42d976f99a1700ce5f20 > files > 2261

ghc-7.4.2-4.mga5.i586.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>Data.Tuple</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><script src="haddock-util.js" type="text/javascript"></script><script type="text/javascript">//<![CDATA[
window.onload = function () {pageLoad();setSynopsis("mini_Data-Tuple.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">base-4.5.1.0: Basic libraries</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Portability</th><td>portable</td></tr><tr><th>Stability</th><td>experimental</td></tr><tr><th>Maintainer</th><td>libraries@haskell.org</td></tr><tr><th>Safe Haskell</th><td>Trustworthy</td></tr></table><p class="caption">Data.Tuple</p></div><div id="description"><p class="caption">Description</p><div class="doc"><p>The tuple data types, and associated functions.
</p></div></div><div id="synopsis"><p id="control.syn" class="caption expander" onclick="toggleSection('syn')">Synopsis</p><ul id="section.syn" class="hide" onclick="toggleSection('syn')"><li class="src short"><a href="#v:fst">fst</a> ::  (a, b) -&gt; a</li><li class="src short"><a href="#v:snd">snd</a> ::  (a, b) -&gt; b</li><li class="src short"><a href="#v:curry">curry</a> ::  ((a, b) -&gt; c) -&gt; a -&gt; b -&gt; c</li><li class="src short"><a href="#v:uncurry">uncurry</a> ::  (a -&gt; b -&gt; c) -&gt; (a, b) -&gt; c</li><li class="src short"><a href="#v:swap">swap</a> ::  (a, b) -&gt; (b, a)</li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><a name="v:fst" class="def">fst</a> ::  (a, b) -&gt; a</p><div class="doc"><p>Extract the first component of a pair.
</p></div></div><div class="top"><p class="src"><a name="v:snd" class="def">snd</a> ::  (a, b) -&gt; b</p><div class="doc"><p>Extract the second component of a pair.
</p></div></div><div class="top"><p class="src"><a name="v:curry" class="def">curry</a> ::  ((a, b) -&gt; c) -&gt; a -&gt; b -&gt; c</p><div class="doc"><p><code><a href="Data-Tuple.html#v:curry">curry</a></code> converts an uncurried function to a curried function.
</p></div></div><div class="top"><p class="src"><a name="v:uncurry" class="def">uncurry</a> ::  (a -&gt; b -&gt; c) -&gt; (a, b) -&gt; c</p><div class="doc"><p><code><a href="Data-Tuple.html#v:uncurry">uncurry</a></code> converts a curried function to a function on pairs.
</p></div></div><div class="top"><p class="src"><a name="v:swap" class="def">swap</a> ::  (a, b) -&gt; (b, a)</p><div class="doc"><p>Swap the components of a pair.
</p></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.11.0</p></div></body></html>