Permalink
Browse files

syntax slides

  • Loading branch information...
astro committed Aug 27, 2012
1 parent 22477c9 commit 14474df2e48e705e90934cba7eabee3914e890ab
Showing with 32 additions and 8 deletions.
  1. +32 −8 index.html
View
@@ -62,15 +62,39 @@ <h1>Themenabend Haskell &amp; Yesod</h1>
* Syntax, Currying, Typen, Lazyness  (astro)  (min. 30min)
-->
<div class="slide">
- <h2>Syntax</h2>
- <ul>
- <li>
- <p>Rumpf:</p>
- <pre class="sh_haskell">f = undefined</pre>
- </li>
- </ul>
- <div class="note">Zeug erklären</div>
+ <h1>Syntax</h2>
+</div>
+<div class="slide">
+ <h2>Funktionen</h2>
+ <pre>fac :: Integer -> Integer
+fac 1 = 1
+fac n = n * fac (n - 1)
+ </pre>
+ <p class="note">Fakultät</p>
+ <p class="note">-&gt; Impliziert</p>
+ <p class="note">Pattern matching des Parameters</p>
+ <p class="note">Integer is bignum</p>
+</div>
+<div class="slide">
+ <h2>Guards</h2>
+ <pre>fac :: Integer -> Integer
+fac n
+ | n &lt;= 1 = 1
+ | otherwise = n * fac (n - 1)
+ </pre>
+ <p class="note">Boolean expression</p>
+</div>
+
+<!--
+case
+if
+let/where
+module
+-->
+<div class="slide">
+ <h2>Currying</h2>
</div>
+<!-- sections -->
<!--
* Monads, Functors, Applicatives (maloi) (30 min)

0 comments on commit 14474df

Please sign in to comment.