Skip to content

Commit

Permalink
update page
Browse files Browse the repository at this point in the history
  • Loading branch information
ranjitjhala committed Sep 24, 2016
1 parent eece72b commit 1a36f01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/lectures/02-haskell.html
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ <h2 id="larger-example">Larger Example</h2>
<p><strong>Haskell</strong></p>
<div class="sourceCode"><pre class="sourceCode haskell"><code class="sourceCode haskell">sort<span class="ot"> ::</span> (<span class="dt">Ord</span> a) <span class="ot">=&gt;</span> [a] <span class="ot">-&gt;</span> [a]
sort [] <span class="fu">=</span> []
sort (h<span class="fu">:</span>t) <span class="fu">=</span> sort ls <span class="fu">@</span> [h] <span class="fu">@</span> sort rs
sort (h<span class="fu">:</span>t) <span class="fu">=</span> sort ls <span class="fu">++</span> [h] <span class="fu">++</span> sort rs
<span class="kw">where</span>
(ls,rs) <span class="fu">=</span> partition (\x <span class="ot">-&gt;</span> x <span class="fu">&lt;</span> h) t</code></pre></div>
<h2 id="list-comprehensions">List Comprehensions</h2>
Expand Down

0 comments on commit 1a36f01

Please sign in to comment.