@@ -156,7 +156,7 @@ for eval <- Seq(eval1, eval2) do
...
@@ -156,7 +156,7 @@ for eval <- Seq(eval1, eval2) do
### Exercise 3.1
### Exercise 3.1
- Type parameter `A` in `map`
- Type parameter `A` in `map`
-`def map[C](f: B => C): Transform[B, C]`
-`def map[C](f: B => C): Transform[A, C]`
### Exercise 3.2
### Exercise 3.2
...
@@ -322,4 +322,4 @@ def increasingSequences(list: List[Int]): List[List[Int]] = list match
...
@@ -322,4 +322,4 @@ def increasingSequences(list: List[Int]): List[List[Int]] = list match
**Comments**
**Comments**
- It is important to store `prefix` to avoid calling twice `takeWhileStrictlyIncreasing`.
- It is important to store `prefix` to avoid calling twice `takeWhileStrictlyIncreasing`.
- In the empty list case, some students made the confusion of returning a list containing the empty list. In this case, we have: `List[List[Int]]() == Nil != List(Nil) == List(List[Int]())`.
- In the empty list case, some students made the confusion of returning a list containing the empty list. In this case, we have: `List[List[Int]]() == Nil != List(Nil) == List(List[Int]())`.