Skip to content

Commit 7ec55b1

Browse files
committed
Fix some links
1 parent 581757a commit 7ec55b1

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

docs/docs/reference/changed-features/wildcards.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ We pick `?` as a replacement syntax for wildcard types, since it aligns with Jav
2121

2222
### Migration Strategy
2323

24-
The migration to the new scheme is complicated, in particular since the [kind projector](https://github.com/typelevel/kind-projector])
24+
The migration to the new scheme is complicated, in particular since the [kind projector](https://github.com/typelevel/kind-projector)
2525
compiler plugin still uses the reverse convention, with `?` meaning parameter placeholder instead of wildcard. Fortunately, kind projector has added `*` as an alternative syntax for `?`.
2626

2727
A step-by-step migration is made possible with the following measures:

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ title: "Tupled Function"
66
Tupled Function
77
----------------------
88

9-
With functions bounded to arities up to 22 it was possible to generalize some operation on all function types using overloading.
10-
Now that we have functions and tuples generalized to [arities above 22](../dropped-features/limit22.md) overloading is not an option anymore.
9+
With functions bounded to arities up to 22 it was possible to generalize some operation on all function types using overloading.
10+
Now that we have functions and tuples generalized to [arities above 22](../dropped-features/limit22.md) overloading is not an option anymore.
1111
The type class `TupleFunction` provides a way to abstract directly over a function of any arity converting it to an equivalent function that receives all arguments in a single tuple.
1212

1313
```scala
@@ -33,7 +33,7 @@ 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/tests/run/tupled-function-tupled.scala))
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))
3737

3838
```scala
3939
/** Creates a tupled version of this function: instead of N arguments,
@@ -46,7 +46,7 @@ Examples
4646
def (f: F) tupled[F, Args <: Tuple, R] given (tf: TupledFunction[F, Args => R]): Args => R = tf.tupled(f)
4747
```
4848

49-
`TupledFunction` can be used to generalize the `Function.untupled` methods to functions of any arities ([full example](https://github.com/lampepfl/dotty/tests/run/tupled-function-untupled.scala))
49+
`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))
5050

5151
```scala
5252
/** Creates an untupled version of this function: instead of single [[scala.Tuple]] argument,
@@ -61,7 +61,7 @@ def (f: F) tupled[F, Args <: Tuple, R] given (tf: TupledFunction[F, Args => R]):
6161
def (f: Args => R) untupled[F, Args <: Tuple, R] given (tf: TupledFunction[F, Args => R]): F = tf.untupled(f)
6262
```
6363

64-
`TupledFunction` can also be used to generalize the [`Tuple1.compose`](https://github.com/lampepfl/dotty/tests/run/tupled-function-compose.scala) and [`Tuple1.andThen`](https://github.com/lampepfl/dotty/tests/run/tupled-function-andThen.scala) methods to compose functions of larger arities and with functions that return tuples.
64+
`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.
6565

6666
```scala
6767
/** Composes two instances of TupledFunctions in a new TupledFunctions, with this function applied last

0 commit comments

Comments
 (0)