You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/docs/reference/contextual/inferable-params.md
+5-6Lines changed: 5 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -41,8 +41,7 @@ def maximum[T](xs: List[T]) given Ord[T]: T =
41
41
inferred argument to `max`. The name of the parameter is left out.
42
42
43
43
Generally, inferable parameters may be given either as a parameter list `(p_1: T_1, ..., p_n: T_n)`
44
-
or as a sequence of types, separated by commas. To distinguish the two, a leading
45
-
`(` always indicates a parameter list.
44
+
or as a sequence of types, separated by commas.
46
45
47
46
## Inferring Complex Arguments
48
47
@@ -101,11 +100,11 @@ Functions like `the` that have only inferable parameters are also called _contex
101
100
Here is the new syntax of parameters and arguments seen as a delta from the [standard context free syntax of Scala 3](http://dotty.epfl.ch/docs/internals/syntax.html).
0 commit comments