Skip to content

Commit 86520a7

Browse files
committed
Rename Auto-Parameter-Tupling to Parameter Untupling
1 parent c5e3652 commit 86520a7

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

docs/docs/reference/other-new-features/auto-parameter-tupling-spec.md renamed to docs/docs/reference/other-new-features/parameter-untupling-spec.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
layout: doc-page
3-
title: "Automatic Tupling of Function Parameters - More Details"
3+
title: "Parameter Untupling - More Details"
44
---
55

66
### Motivation
@@ -11,7 +11,7 @@ Say you have a list of pairs
1111
val xs: List[(Int, Int)]
1212
```
1313

14-
and you want to map `xs` to a list of `Int`s so that each pair of numbers is mapped to their sum.
14+
and you want to map `xs` to a list of `Int`s so that each pair of numbers is mapped to their sum.
1515
Previously, the best way to do this was with a pattern-matching decomposition:
1616
```scala
1717
xs.map {
@@ -50,7 +50,7 @@ can in turn be adapted to the expected type with auto-tupling.
5050

5151
#### Term addaptation
5252

53-
If the a function
53+
If the a function
5454
```scala
5555
(p1: T1, ..., pn: Tn) => e
5656
```
@@ -76,7 +76,7 @@ Translation of such a tuples would use the `apply` method on the tuple to access
7676
Code like this could not be written before, hence the new notation would not be ambigouous after adoption.
7777

7878
Though it is possible that someone has written an implicit conversion form `(T1, ..., Tn) => R` to `TupleN[T1, ..., Tn] => R`
79-
for some `n`. This change could be detected and fixed by `Scalafix`. Furthermore, such conversion would probably
79+
for some `n`. This change could be detected and fixed by `Scalafix`. Furthermore, such conversion would probably
8080
be doing the same translation (semantically) but in a less efficient way.
8181

8282
### Reference

docs/docs/reference/other-new-features/auto-parameter-tupling.md renamed to docs/docs/reference/other-new-features/parameter-untupling.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
layout: doc-page
3-
title: "Automatic Tupling of Function Parameters"
3+
title: "Parameter Untupling"
44
---
55

66
Say you have a list of pairs
@@ -31,5 +31,5 @@ function type of the form `((T_1, ..., T_n)) => U`.
3131
### Reference
3232

3333
For more info see:
34-
* [More details](./auto-parameter-tupling-spec.html)
34+
* [More details](./parameter-untupling-spec.html)
3535
* [Issue #897](https://github.com/lampepfl/dotty/issues/897).

docs/sidebar.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ sidebar:
8181
url: docs/reference/other-new-features/tasty-reflect.html
8282
- title: Opaque Type Aliases
8383
url: docs/reference/other-new-features/opaques.html
84-
- title: Auto Parameter Tupling
85-
url: docs/reference/other-new-features/auto-parameter-tupling.html
84+
- title: Parameter Untupling
85+
url: docs/reference/other-new-features/parameter-untupling.html
8686
- title: Erased Terms
8787
url: docs/reference/other-new-features/erased-terms.html
8888
- title: Kind Polymorphism

0 commit comments

Comments
 (0)