Commit d89121a6 authored by Sandra Dylus's avatar Sandra Dylus
Browse files

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

parents 5bb5fd55 3966f4ad
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
> nats :: [] Int > nats :: [] Int
> nats = nats' 0 > nats = nats' 0
> where nats' n = n : nats' (n+1) > where nats' n = n : nats' (n+1)
Which of the following expressions terminate? Which of the following expressions terminate?
a) take 10 nats a) take 10 nats
...@@ -80,7 +80,7 @@ Now define the following functions using `mapTree` and `foldTree`, respectively. ...@@ -80,7 +80,7 @@ Now define the following functions using `mapTree` and `foldTree`, respectively.
> Num :: Int -> Expr > Num :: Int -> Expr
> Add :: Expr -> Expr -> Expr > Add :: Expr -> Expr -> Expr
> Mult :: Expr -> Expr -> Expr > Mult :: Expr -> Expr -> Expr
Give three exemplary values for arithmetic expressions that represent the expression given in the comment above. Give three exemplary values for arithmetic expressions that represent the expression given in the comment above.
> -- 1 + (2 * 3) > -- 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