Skip to content

Commit 401a091

Browse files
authored
Update trait-iterable.md
foldRight uses starting value as z.
1 parent ee23094 commit 401a091

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_overviews/collections-2.13/trait-iterable.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ res7: List[Int] = List(3, 4, 5)
133133
| `xs.count(p)` |The number of elements in `xs` that satisfy the predicate `p`.|
134134
| **Folds:** | |
135135
| `xs.foldLeft(z)(op)` |Apply binary operation `op` between successive elements of `xs`, going left to right and starting with `z`.|
136-
| `xs.foldRight(z)(op)` |Apply binary operation `op` between successive elements of `xs`, going right to left and ending with `z`.|
136+
| `xs.foldRight(z)(op)` |Apply binary operation `op` between successive elements of `xs`, going right to left and starting with `z`.|
137137
| `xs.reduceLeft(op)` |Apply binary operation `op` between successive elements of non-empty collection `xs`, going left to right.|
138138
| `xs.reduceRight(op)` |Apply binary operation `op` between successive elements of non-empty collection `xs`, going right to left.|
139139
| **Specific Folds:** | |

0 commit comments

Comments
 (0)