diff --git a/VL1.tex b/VL1.tex index 60afc22..68bc24c 100644 --- a/VL1.tex +++ b/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]