Julian Ospald
hace 9 años
No se encontró ninguna clave conocida en la base de datos para esta firma
ID de clave GPG: 220CD1C5BDEED020
Se han
modificado 1 ficheros con
12 adiciones y
0 borrados
-
VL1.tex
|
|
@@ -380,6 +380,18 @@ infiniteList = [1..] |
|
|
|
\end{lstlisting} |
|
|
|
\end{frame} |
|
|
|
|
|
|
|
\begin{frame}[fragile] |
|
|
|
\frametitle{Lists (ctn.)} |
|
|
|
A String in haskell is just a list of Chars! |
|
|
|
\setHaskellCodeStyle |
|
|
|
\begin{lstlisting} |
|
|
|
> ['a', 'b', 'c'] |
|
|
|
> 'a' : [] |
|
|
|
> head "abc" |
|
|
|
> 'a' ++ 'c' |
|
|
|
\end{lstlisting} |
|
|
|
\end{frame} |
|
|
|
|
|
|
|
\begin{frame}[fragile] |
|
|
|
\frametitle{Lists (ctn.)} |
|
|
|
Again, we can do pattern matching on lists. |
|
|
|