summaryrefslogtreecommitdiff
path: root/docs/type_system/tuple.md
blob: fc1cdcb484ec19f508f6fafdbb17f36c5029b6b2 (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
# Tuple

---

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

```text
Tuple[TYPE; 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)
```

# Mutating