-
Notifications
You must be signed in to change notification settings - Fork 0
/
Eta-Prelude-Classes-Integral.html
15 lines (15 loc) · 3.23 KB
/
Eta-Prelude-Classes-Integral.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<!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.Prelude.Classes.Integral</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-Prelude-Classes-Integral.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.Prelude.Classes.Integral</p></div><div id="description"><p class="caption">Description</p><div class="doc"><p>The <code>Integral</code> type class defines Integral values
and how are they able to be divided</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:dividedBy">dividedBy</a> :: Integral a => a -> a -> a</li><li class="src short"><a href="#v:modulus">modulus</a> :: Integral a => a -> a -> a</li><li class="src short"><a href="#v:divideWithRemainder">divideWithRemainder</a> :: Integral a => a -> a -> (a, a)</li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><a id="v:dividedBy" class="def">dividedBy</a> :: Integral a => a -> a -> a <a href="#v:dividedBy" class="selflink">#</a></p><div class="doc"><p>Integer division, rounded down</p><pre class="screen"><code class="prompt">>>> </code><strong class="userinput"><code>4 `dividedBy` 2
</code></strong>2
<code class="prompt">>>> </code><strong class="userinput"><code>5 `dividedBy` 2
</code></strong>2
</pre></div></div><div class="top"><p class="src"><a id="v:modulus" class="def">modulus</a> :: Integral a => a -> a -> a <a href="#v:modulus" class="selflink">#</a></p><div class="doc"><p>Integer modulus</p><pre class="screen"><code class="prompt">>>> </code><strong class="userinput"><code>4 `modulus` 2
</code></strong>0
<code class="prompt">>>> </code><strong class="userinput"><code>5 `modulus` 2
</code></strong>1
</pre></div></div><div class="top"><p class="src"><a id="v:divideWithRemainder" class="def">divideWithRemainder</a> :: Integral a => a -> a -> (a, a) <a href="#v:divideWithRemainder" class="selflink">#</a></p><div class="doc"><p>Returns result of the division and its remainder</p><pre class="screen"><code class="prompt">>>> </code><strong class="userinput"><code>7 `divideWithRemainder` 2
</code></strong>(3,1)
</pre></div></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>