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 5b9b1a4 + d3dd7dd commit d4ddbebCopy full SHA for d4ddbeb
docs/_docs/reference/experimental/fewer-braces.md
@@ -56,7 +56,7 @@ The `:` can optionally be followed by the parameter part of a function literal:
56
val xs = elems.map: x =>
57
val y = x - 1
58
y * y
59
-xs.foldLeft (x, y) =>
+xs.foldLeft(0): (x, y) =>
60
x + y
61
```
62
Braces can be omitted if the lambda starts with a parameter list and an arrow symbol `=>` or `?=>`.
0 commit comments