You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
230 B
16 lines
230 B
7 years ago
|
# Exercises: Grab Bag
|
||
|
## Exercise 1
|
||
|
They are all equivalent.
|
||
|
|
||
|
## Exercise 2
|
||
|
(d)
|
||
|
|
||
|
## Exercise 3
|
||
|
### addOneIfOdd
|
||
|
`f = \n -> n + 1`
|
||
|
|
||
|
### addFive
|
||
|
`addFive = \x -> \y -> (if (x > y) then y else x) + 5`
|
||
|
|
||
|
### mflip
|
||
|
`mflip f x y = f y x`
|