Commit d89121a6 authored by Sandra Dylus's avatar Sandra Dylus

Merge branch 'master' of git.informatik.uni-kiel.de:sad/advanced-programming-ws19

parents 5bb5fd55 3966f4ad
......@@ -10,7 +10,7 @@
> nats :: [] Int
> nats = nats' 0
> where nats' n = n : nats' (n+1)
Which of the following expressions terminate?
a) take 10 nats
......@@ -80,7 +80,7 @@ Now define the following functions using `mapTree` and `foldTree`, respectively.
> Num :: Int -> Expr
> Add :: Expr -> Expr -> Expr
> Mult :: Expr -> Expr -> Expr
Give three exemplary values for arithmetic expressions that represent the expression given in the comment above.
> -- 1 + (2 * 3)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment