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/right-associative-extension-methods.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@ it has a name ending in `:` and is immediately followed by a
23
23
single parameter. In the example above, that parameter is `(y: Y)`.
24
24
25
25
The Scala compiler pre-processes a right-associative infix operation such as `x +: xs`
26
-
to `xs.+:(x)` if `x`and `xs` are pure expressions or`x` is a call-by-name parameter and to `val y = x; xs.+:(y)` otherwise. This is necessary since a regular right-associative infix method
26
+
to `xs.+:(x)` if `x`is a pure expression or a call-by-name parameter and to `val y = x; xs.+:(y)` otherwise. This is necessary since a regular right-associative infix method
27
27
is defined in the class of its right operand. To make up for this swap,
28
28
the expansion of right-associative extension methods performs an analogous parameter swap. More precisely, if `otherParams` consists of a single parameter
29
29
`rightParam` followed by `remaining`, the total parameter sequence
0 commit comments