Tin

Examples · learn/08-collections · 137 of 339

empty

examples/learn/08-collections/empty.tintin run examples/learn/08-collections/empty.tin
fn main() {
  var names: string[] = []       // an empty array needs its type spelled out
  print(names.isEmpty())
  names.push("ada")
  print(names)
}