summaryrefslogtreecommitdiff
path: root/docs/type_system/enum.md
blob: 6b06849b26eb826819db703498955e759c3def46 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Enum

---

A symbol associated with a type

```text
Enum[TYPE; Collection[.symbol : Const[Value]]]
```

## Definition Example

```text
E : Enum[I64; .a; .b; .c]
`log E Enum[I64; .a : 0; .b : 1; .c : 2]
```