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.
515 B
515 B
Chapter Exercises
Reading syntax
Excercise 1
- Correct
- Incorrect, should be:
(++) [1,2,3] [4,5,6]
- Correct
- Correct
- Incorrect, should be:
"hello" !! 4
- Correct
- Incorrect, should be:
take 4 "lovely"
- Correct
Exercise 2
- a -> d
- b -> c
- c -> e
- d -> a
- e -> b
Building functions
Exercise 1
"Curry is awesome" ++ "!"
("Curry is awesome!" !! 4) : ""
drop 9 "Curry is awesome!"
Exercises 2-5
see src/chapter3.hs
Exercise 6
see src/reverse.hs