2023-10-02 01:41:38 +00:00
|
|
|
# Tuples
|
|
|
|
|
|
|
|
Uses `#()` just to avoid confusion with function
|
|
|
|
calls (`()`).
|
|
|
|
|
|
|
|
## Definition
|
|
|
|
|
|
|
|
```thp
|
2023-12-17 01:33:55 +00:00
|
|
|
let person = #("John", "Doe", 32)
|
2023-10-02 01:41:38 +00:00
|
|
|
|
2023-12-17 01:33:55 +00:00
|
|
|
let #(name, surname, age) = person
|
2023-10-02 01:41:38 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
## Signature
|
|
|
|
|
|
|
|
```thp
|
|
|
|
#(String, String, Int)
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
|