Fix inconsistencies

master
Gaël Depreeuw 7 years ago
parent 73d974fcfa
commit d7b08372e7
  1. 2
      02-hello-haskell/2.5-comprehension-check.md
  2. 11
      02-hello-haskell/src/chapter.hs
  3. 13
      02-hello-haskell/src/chapter2.hs
  4. 2
      03-strings/3.11-chapter-exercises.md

@ -1,4 +1,4 @@
# Exercises: Comprhension check
# Exercises: Comprehension check
## Exercise 1
To declare these functions in the REPL, you need to prepend them with **let**.

@ -1,11 +0,0 @@
-- 4
waxOn = x * 5
where z = 7
x = y ^ 2
y = z + 8
-- 5
triple x = x * 3
-- 6
waxOff x = triple x

@ -36,3 +36,16 @@ bar x = pi * (x * x)
x = 7
y = 18
f = x + y
-- 2.11 Chpater Exercises
-- 4
waxOn = x * 5
where z = 7
x = y ^ 2
y = z + 8
-- 5
triple x = x * 3
-- 6
waxOff x = triple x

@ -2,7 +2,7 @@
## Reading syntax
### Excercise 1
1. Correct
2. Incorrect, should be: `(++) [1,2,3] [4,5,6]
2. Incorrect, should be: `(++) [1,2,3] [4,5,6]`
3. Correct
4. Correct
5. Incorrect, should be: `"hello" !! 4`

Loading…
Cancel
Save