Browse Source

Add more questions

Julian Ospald 4 years ago
parent
commit
002ba1d830
No account linked to committer's email address
1 changed files with 11 additions and 1 deletions
  1. 11
    1
      VL2/content/VL2_questions_for_you.tex

+ 11
- 1
VL2/content/VL2_questions_for_you.tex View File

@@ -3,7 +3,17 @@
3 3
 \item what is the difference between \hinline{foldr} and \hinline{foldl}?
4 4
 \item what is the difference between explicit and implicit recursion? Give examples
5 5
 \item how many arguments does a haskell function have (strictly speaking)?
6
+\item Are these type signatures technically equivalent?
7
+\begin{haskellcode}
8
+f :: Int -> Int -> Char -> Int -> Int -> Char
9
+f :: Int -> Int -> (Char -> (Int -> (Int -> Char)))
10
+\end{haskellcode}
11
+% $
6 12
 \item what do you have to keep in mind in order to make function composition work?
7 13
 \item can you define \hinline{map} and \hinline{filter} in terms of \hinline{foldr}?
8
-\item what is eta reduction (or: eta abstraction)?
14
+\item simplify (and eta reduce) the following code snippet
15
+\begin{haskellcode}
16
+f x y = (\d e -> d * e) x $ y
17
+\end{haskellcode}
18
+% $
9 19
 \end{itemize}