Tuples

Tuples group a fixed number of values without defining a named type.

code
fn user() -> #(String, Int):
  #("Donna", 1)

They are useful for small internal values.

code
fn package_info() -> #(String, String):
  #("donna_stdlib", "0.1.1")

Tuples can also be matched in case.

code
fn describe(pair: #(String, Int)) -> String:
  case pair:
    #(name, count) -> name

Use a custom type when the data deserves names. Tuples are sharp tools. Do not juggle them for attention.