thp-lang.org/md/learn/collections/tuples.md
2024-03-13 12:16:29 -05:00

22 lines
236 B
Markdown

# Tuples
Uses `#()` just to avoid confusion with function calls and grouping (`()`).
## Definition
```thp
val person = #("John", "Doe", 32)
val #(name, surname, age) = person
```
## Signature
```thp
#(String, String, Int)
```