Skip to content

Commit 18edb35

Browse files
committed
Moved Type Classes to just after Givens
1 parent 042546e commit 18edb35

10 files changed

+14
-14
lines changed

_overviews/scala3-book/ca-context-bounds.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Context Bounds
33
type: section
44
description: This page demonstrates Context Bounds in Scala 3.
55
num: 61
6-
previous-page: ca-given-using-clauses
6+
previous-page: types-type-classes
77
next-page: ca-given-imports
88
---
99

_overviews/scala3-book/ca-contextual-abstractions-intro.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Contextual Abstractions
33
type: chapter
44
description: This chapter provides an introduction to the Scala 3 concept of Contextual Abstractions.
5-
num: 59
5+
num: 58
66
previous-page: types-others
77
next-page: ca-given-using-clauses
88
---

_overviews/scala3-book/ca-given-using-clauses.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
title: Given Instances and Using Clauses
33
type: section
44
description: This page demonstrates how to use 'given' instances and 'using' clauses in Scala 3.
5-
num: 60
5+
num: 59
66
previous-page: ca-contextual-abstractions-intro
7-
next-page: ca-context-bounds
7+
next-page: types-type-classes
88
---
99

1010
Scala 3 offers two important feature for contextual abstraction:

_overviews/scala3-book/types-adts-gadts.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ type: section
44
description: This section introduces and demonstrates algebraic data types (ADTs) in Scala 3.
55
num: 52
66
previous-page: types-union
7-
next-page: types-type-classes
7+
next-page: types-variance
88
---
99

1010

_overviews/scala3-book/types-dependent-function.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Dependent Function Types
33
type: section
44
description: This section introduces and demonstrates dependent function types in Scala 3.
5-
num: 57
5+
num: 56
66
previous-page: types-structural
77
next-page: types-others
88
---

_overviews/scala3-book/types-opaque-types.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Opaque Types
33
type: section
44
description: This section introduces and demonstrates opaque types in Scala 3.
5-
num: 55
5+
num: 54
66
previous-page: types-variance
77
next-page: types-structural
88
---

_overviews/scala3-book/types-others.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Other Types
33
type: section
44
description: This section mentions other advanced types in Scala 3.
5-
num: 58
5+
num: 57
66
previous-page: types-dependent-function
77
next-page: ca-contextual-abstractions-intro
88
---

_overviews/scala3-book/types-structural.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Structural Types
33
type: section
44
description: This section introduces and demonstrates structural types in Scala 3.
5-
num: 56
5+
num: 55
66
previous-page: types-opaque-types
77
next-page: types-dependent-function
88
---

_overviews/scala3-book/types-type-classes.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
title: Type Classes
33
type: section
44
description: This section introduces type classes in Scala 3.
5-
num: 53
6-
previous-page: types-adts-gadts
7-
next-page: types-variance
5+
num: 60
6+
previous-page: ca-given-using-clauses
7+
next-page: ca-context-bounds
88
---
99

1010
A _type class_ is an abstract, parameterized type that lets you add new behavior to any closed data type without using sub-typing. If you are coming from Java, you can think of type classes as something like [`java.util.Comparator[T]`][comparator].

_overviews/scala3-book/types-variance.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
title: Variance
33
type: section
44
description: This section introduces and demonstrates variance in Scala 3.
5-
num: 54
6-
previous-page: types-type-classes
5+
num: 53
6+
previous-page: types-adts-gadts
77
next-page: types-opaque-types
88
---
99

0 commit comments

Comments
 (0)