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.
1 parent aa63555 commit bb3080dCopy full SHA for bb3080d
content/polymorphic-eta-expansion.md
@@ -221,6 +221,12 @@ extension (x: Int)
221
val extv1_1: [B] => B => B = extf1(4) // extf1(4) becomes [B'] => (y: B') => extf1(4)[B'](y)
222
223
val extv1_3: Int => [B] => B => B = extf1 // extf1 becomes (i: Int) => [B'] => (y: B') => extf1(i)[B'](y)
224
+
225
+// See https://docs.scala-lang.org/sips/clause-interleaving.html
226
+def interleaved(key: Key)[V >: key.Value](default: V): V = ???
227
+val someKey: Key = ???
228
+val interleaved_1: [A >: someKey.Value] => A => A = interleaved(someKey)
229
+// interleaved(someKey) becomes [A' >: someKey.Value] => (default: A') => interleaved(someKey)[A'](default)
230
~~~
231
232
#### Implicit parameters:
0 commit comments