Julian Ospald
пре 9 година
No known key found for this signature in database
GPG Key ID: 220CD1C5BDEED020
1 измењених фајлова са
1 додато и
0 уклоњено
-
VL1.tex
|
|
@@ -401,6 +401,7 @@ listLen :: [Integer] -> Integer |
|
|
|
listLen [] = 0 |
|
|
|
listLen (x:xs) = 1 + listLen xs |
|
|
|
\end{lstlisting} |
|
|
|
\pause |
|
|
|
We can also nest pattern matching: |
|
|
|
\begin{lstlisting} |
|
|
|
sumEveryTwo :: [Integer] -> [Integer] |
|
|
|