We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 609cd62 + ded728a commit bebba70Copy full SHA for bebba70
_tour/multiple-parameter-lists.md
@@ -47,7 +47,7 @@ numbers.foldLeft(0, {(m: Int, n: Int) => m + n})
47
```
48
numbers.foldLeft(0)(_ + _)
49
50
- Above statement `numbers.foldLeft(0)(_ + _)` allows us to fix the parameter `z` and pass around a partial function and reuse it as shown below:
+ Also it allows us to fix the parameter `z` and pass around a partial function and reuse it as shown below:
51
```tut
52
val numbers = List(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
53
val numberFunc = numbers.foldLeft(List[Int]())_
0 commit comments