Examples · learn/08-collections · 143 of 339
sort
tin run examples/learn/08-collections/sort.tinfn main() {
let scores = [72, 95, 88, 60]
print(sort(scores)) // a sorted copy; scores itself is unchanged
print(scores)
print(sum(scores))
print(first(scores)) // Option: an empty array has no first item
print(join(["a", "b", "c"], " / "))
}