File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change 1
- # Enums
1
+ # Enumerations
2
2
3
- The most basic use of enums is as enumerations of simple values:
3
+ An enumeration is used to define a type consisting of a set of named values.
4
4
5
5
``` scala
6
6
enum Color {
Original file line number Diff line number Diff line change 1
1
sidebar :
2
2
- title : Blog
3
3
url : blog/index.html
4
+ - title : Reference
5
+ subsection :
6
+ - title : Trait Parameters
7
+ url : docs/reference/trait-parameters.html
8
+ - title : Enumerations
9
+ url : docs/reference/enums.html
10
+ - title : Algebraic Data Types
11
+ url : docs/reference/adts.html
12
+ - title : Enum Translation
13
+ url : docs/reference/desugarEnums.html
14
+ - title : By-Name Implicits
15
+ url : docs/reference/implicit-by-name-parameters.html
4
16
- title : Usage
5
17
subsection :
6
18
- title : cbt-projects
You can’t perform that action at this time.
0 commit comments