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
`TupledFunction` can be used to generalize the `Function.untupled`methods to functions of any arities ([full example](https://github.com/lampepfl/dotty/blob/master/tests/run/tupled-function-untupled.scala))
50
+
`TupledFunction` can be used to generalize the `Function.untupled` to a function of any arities ([full example](https://github.com/lampepfl/dotty/blob/master/tests/run/tupled-function-untupled.scala))
51
51
52
52
```scala
53
-
/** Creates an untupled version of this function: instead of single [[scala.Tuple]] argument,
54
-
* it accepts a N arguments.
53
+
/** Creates an untupled version of this function: instead of a single [[scala.Tuple]]N argument,
54
+
* it accepts N arguments.
55
55
*
56
56
* This is a generalization of [[scala.Function.untupled]] that work on functions of any arity
`TupledFunction` can also be used to generalize the [`Tuple1.compose`](https://github.com/lampepfl/dotty/blob/master/tests/run/tupled-function-compose.scala) and [`Tuple1.andThen`](https://github.com/lampepfl/dotty/blob/master/tests/run/tupled-function-andThen.scala) methods to compose functions of larger arities and with functions that return tuples.
66
66
67
67
```scala
68
-
/** Composes two instances of TupledFunctions in a new TupledFunctions, with this function applied last
68
+
/** Composes two instances of TupledFunction into a new TupledFunction, with this function applied last.
0 commit comments