Skip to content

Commit 17500b9

Browse files
authored
Merge pull request #36 from cstuncsik/traversable-foldright
Traversable foldRight verbose example is missing
2 parents 7d17e8e + b615a0e commit 17500b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/scala/stdlib/Traversables.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ object Traversables extends FlatSpec with Matchers with exercise.Section {
454454
}
455455
result should be(res0)
456456

457-
val result2 = (list :\ 0) {
457+
val result2 = list.foldRight(0) {
458458
(`next element`, `running total`) `next element` - `running total`
459459
}
460460
result2 should be(res1)

0 commit comments

Comments
 (0)