thp-lang.org/md/learn/data-structures/tuples.md

236 B

Tuples

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

Definition

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

val #(name, surname, age) = person

Signature

#(String, String, Int)