thp-lang.org/md/learn/collections/tuples.md

223 B

Tuples

Uses #() just to avoid confusion with function calls (()).

Definition

let person = #("John", "Doe", 32)

let #(name, surname, age) = person

Signature

#(String, String, Int)