blob: 31ad83c11c7b62343809ed88a60649fc8b2d9c48 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# Select
---
A symbol associated with a type
```text
Select[[ENUM | MASK] Type; Collection[VAR_TREE_LIST; .symbol : %const Value]]
```
## Type Body Object Definitions
```c
typedef struct {
kpl_type *type, *var_tree, *var_list;
} kpl_type_body_select;
```
# Alias
```text
Enum `definition Select[[ENUM]; TYPE; Collection[VAR_TREE_LIST; .symbol : %const Value]]
Mask `definition Select[[MASK]; Void; Collection[VAR_TREE_LIST; .symbol]]
```
## Definition Example
```text
e : Enum[I64; .a; .b; .c]
`log E // Select[[ENUM] I64; .a : 0; .b : 1; .c : 2]
```
|