-
Notifications
You must be signed in to change notification settings - Fork 0
/
Eta-Types-Tuple.html
8 lines (8 loc) · 2.92 KB
/
Eta-Types-Tuple.html
1
2
3
4
5
6
7
8
<!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>Eta.Types.Tuple</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><script src="haddock-util.js" type="text/javascript"></script><script src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript"></script><script type="text/javascript">//<![CDATA[
window.onload = function () {pageLoad();setSynopsis("mini_Eta-Types-Tuple.html");};
//]]>
</script></head><body class="no-frame"><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 empty"> </p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Safe Haskell</th><td>Safe</td></tr></table><p class="caption">Eta.Types.Tuple</p></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:first">first</a> :: (a, b) -> a</li><li class="src short"><a href="#v:second">second</a> :: (a, b) -> b</li><li class="src short"><a href="#v:curry">curry</a> :: ((a, b) -> c) -> a -> b -> c</li><li class="src short"><a href="#v:uncurry">uncurry</a> :: (a -> b -> c) -> (a, b) -> c</li><li class="src short"><a href="#v:swap">swap</a> :: (a, b) -> (b, a)</li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><a id="v:first" class="def">first</a> :: (a, b) -> a <a href="#v:first" class="selflink">#</a></p><div class="doc"><p>Extract the first component of a pair</p><pre class="screen"><code class="prompt">>>> </code><strong class="userinput"><code>first (1, 2)
</code></strong>1
</pre></div></div><div class="top"><p class="src"><a id="v:second" class="def">second</a> :: (a, b) -> b <a href="#v:second" class="selflink">#</a></p><div class="doc"><p>Extract the second component of a pair</p><pre class="screen"><code class="prompt">>>> </code><strong class="userinput"><code>second (1, 2)
</code></strong>2
</pre></div></div><div class="top"><p class="src"><a id="v:curry" class="def">curry</a> :: ((a, b) -> c) -> a -> b -> c <a href="#v:curry" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:uncurry" class="def">uncurry</a> :: (a -> b -> c) -> (a, b) -> c <a href="#v:uncurry" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:swap" class="def">swap</a> :: (a, b) -> (b, a) <a href="#v:swap" class="selflink">#</a></p></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.17.4</p></div></body></html>