Skip to content

Commit bebba70

Browse files
authored
Merge pull request #1272 from hatemogi/master
fix mismatching explanation: it is about currying itself, not the …
2 parents 609cd62 + ded728a commit bebba70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_tour/multiple-parameter-lists.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ numbers.foldLeft(0, {(m: Int, n: Int) => m + n})
4747
```
4848
numbers.foldLeft(0)(_ + _)
4949
```
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:
50+
Also it allows us to fix the parameter `z` and pass around a partial function and reuse it as shown below:
5151
```tut
5252
val numbers = List(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
5353
val numberFunc = numbers.foldLeft(List[Int]())_

0 commit comments

Comments
 (0)