From 401a09197a302d6dbc2defc9cd0d0378119ff83e Mon Sep 17 00:00:00 2001 From: kavskavs <165838614+kavskavs@users.noreply.github.com> Date: Wed, 17 Apr 2024 07:51:10 +0530 Subject: [PATCH] Update trait-iterable.md foldRight uses starting value as z. --- _overviews/collections-2.13/trait-iterable.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_overviews/collections-2.13/trait-iterable.md b/_overviews/collections-2.13/trait-iterable.md index 3cf0410289..21b28e2282 100644 --- a/_overviews/collections-2.13/trait-iterable.md +++ b/_overviews/collections-2.13/trait-iterable.md @@ -133,7 +133,7 @@ res7: List[Int] = List(3, 4, 5) | `xs.count(p)` |The number of elements in `xs` that satisfy the predicate `p`.| | **Folds:** | | | `xs.foldLeft(z)(op)` |Apply binary operation `op` between successive elements of `xs`, going left to right and starting with `z`.| -| `xs.foldRight(z)(op)` |Apply binary operation `op` between successive elements of `xs`, going right to left and ending with `z`.| +| `xs.foldRight(z)(op)` |Apply binary operation `op` between successive elements of `xs`, going right to left and starting with `z`.| | `xs.reduceLeft(op)` |Apply binary operation `op` between successive elements of non-empty collection `xs`, going left to right.| | `xs.reduceRight(op)` |Apply binary operation `op` between successive elements of non-empty collection `xs`, going right to left.| | **Specific Folds:** | |