# cf6bf7f39fbb86f22f20dc72c09c98201cedd5f7c8a6fa9db3af80192fff9332 Elan 1.6.1 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
