summaryrefslogtreecommitdiff
path: root/docs/type_system/group.md
blob: 45e7dcbd356544b79aa80e78255cf95c84899bba (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
33
34
35
36
# Group

---

A sequence of different types accessed by index or a symbol mapped to an index

```text
Group_access `alias Enum[.index; .symbol]
Group[Tuple_access; Collection[TYPE.SYMBOL]]
```

# Alias

```text
Tuple[Collection[TYPE.SYMBOL]] `alias Group[.index; Collection[TYPE.SYMBOL]]

Table[Collection[TYPE.SYMBOL]] `alias Group[.symbol; Collection[TYPE.SYMBOL]]
```

# Operators

## ``get`

## ``set`

```text
Result[Void] : target `set (KEY; VALUE)

items : Tuple $ (1; 2; 3)
items `set (0; 4)
`log items // Tuple[I64; I64; I64] $ (4; 2; 3)
```

# Destructuring

# Mutating