Tuple Library (Tup)
Linked to the tuple type — deliberately small, since a tuple's whole point is a fixed-length group of values, not a resizable collection.
Tup.at(tup: (..), index: int) -> unknown
Indexed access — &tup[i] also works, for a reference into the tuple.
tup-at.stof
#[main]
fn main() {
const tup = ("hi", 42, true);
pln(tup[1], tup.at(1));
}Output
Tup.len(tup: (..)) -> int
tup-len.stof
#[main]
fn main() {
const tup = ("hi", 42, true);
pln(tup.len());
}Output