# 4e598b00591c7fb8d8b603c455bb562e6a4ca89aea99c5979f8142535fb61cf6 Elan 1.6.2 guest default_profile valid

main
  # reusing variable fruit for each new ListImmutable
  variable fruit set to empty ListImmutable<of String>
  print fruit
  set fruit to fruit.withAppend("apple")
  set fruit to fruit.withAppend("pear")
  print fruit
  print fruit[1]
  print fruit.length()
  print fruit[fruit.length() - 2]
  print fruit.contains("banana")
end main
