|
|
@@ -306,7 +306,7 @@ So the function gets an Int and returns an Int. Don't get confused by "\verb|->| |
|
|
|
|
|
|
|
\begin{frame}[fragile] |
|
|
|
\frametitle{Functions and control structures (ctn.)} |
|
|
|
In haskell we often use \textbf{pattern matching}. That means we define a function multiple times, but e.g. for different values of its input parameters. Let's see: |
|
|
|
In haskell we often use \textbf{pattern matching}. That means we define a function multiple times, but e.g. for different values of its input arguments. Let's see: |
|
|
|
\pause |
|
|
|
\setHaskellCodeStyle |
|
|
|
\vspace{\baselineskip} |
|
|
|