View Problem

Remove the last element of a list

ExpandDiskEdit
fantom
list := ["Apple", "Banana", "Carrot"]
list.removeAt(-1)
ExpandDiskEdit
fantom
list := ["Apple", "Banana", "Carrot"]¨
list.pop

Submit a new solution for fantom
There are 28 other solutions in additional languages (clojure, cpp, csharp, erlang ...)