Skip to content

Commit 303411e

Browse files
committed
doc(tupled): link to extension method
1 parent eaab007 commit 303411e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/docs/reference/other-new-features/tupled-function.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ The compiler will synthesize an instance of `TupledFunction[F, G]` if:
3333

3434
Examples
3535
--------
36-
`TupledFunction` can be used to generalize the `Function1.tupled`, ... `Function22.tupled` methods to functions of any arities ([full example](https://github.com/lampepfl/dotty/blob/master/tests/run/tupled-function-tupled.scala))
36+
`TupledFunction` can be used to generalize the `Function1.tupled`, ... `Function22.tupled` methods to functions of any arities.
37+
The following defines `tupled` as [extension method](../contextual/extension-methods.html) ([full example](https://github.com/lampepfl/dotty/blob/master/tests/run/tupled-function-tupled.scala)).
3738

3839
```scala
3940
/** Creates a tupled version of this function: instead of N arguments,

0 commit comments

Comments
 (0)