thp-lang.org/md/learn/collections/tuples.md
2023-10-01 20:41:38 -05:00

223 B

Tuples

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

Definition

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

val #(name, surname, age) = person

Signature

#(String, String, Int)