View Problem

Fetch the last element of a list

Given the list [Red, Green, Blue], access the last element ('Blue')
ExpandDiskEdit
fantom
["Red", "Green", "Blue"][-1]
ExpandDiskEdit
fantom
["One", "Two", "Three", "Four", "Five"].last

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