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

Chapter Exercises

Reading syntax

Excercise 1

  1. Correct
  2. Incorrect, should be: (++) [1,2,3] [4,5,6]
  3. Correct
  4. Correct
  5. Incorrect, should be: "hello" !! 4
  6. Correct
  7. Incorrect, should be: take 4 "lovely"
  8. Correct

Exercise 2

  1. a -> d
  2. b -> c
  3. c -> e
  4. d -> a
  5. e -> b

Building functions

Exercise 1

  1. "Curry is awesome" ++ "!"
  2. ("Curry is awesome!" !! 4) : ""
  3. drop 9 "Curry is awesome!"

Exercises 2-5

see src/chapter3.hs

Exercise 6

see src/reverse.hs