We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7d17e8e + b615a0e commit 17500b9Copy full SHA for 17500b9
src/main/scala/stdlib/Traversables.scala
@@ -454,7 +454,7 @@ object Traversables extends FlatSpec with Matchers with exercise.Section {
454
}
455
result should be(res0)
456
457
- val result2 = (list :\ 0) {
+ val result2 = list.foldRight(0) {
458
(`next element`, `running total`) ⇒ `next element` - `running total`
459
460
result2 should be(res1)
0 commit comments