2015-04-19 22:32:01 +00:00
|
|
|
\begin{itemize}
|
|
|
|
\item What are side effects?
|
|
|
|
\item What is referential transparency?
|
|
|
|
\item Can you have referential transparency with side effects?
|
|
|
|
\item What does the output of a haskell function depend on?
|
|
|
|
\item What is laziness?
|
|
|
|
\item When are types checked in haskell?
|
|
|
|
\item What are the differences between lists and pairs?
|
|
|
|
\end{itemize}
|
2015-04-21 11:46:31 +00:00
|
|
|
Is this a total or a partial function? Would you extend it? How?
|
2015-04-19 22:32:01 +00:00
|
|
|
\begin{haskellcode}
|
2015-04-21 11:46:31 +00:00
|
|
|
even :: Int -> Bool
|
|
|
|
f 0 = True
|
|
|
|
f 2 = True
|
|
|
|
f 4 = True
|
2015-04-19 22:32:01 +00:00
|
|
|
\end{haskellcode}
|