View Problem

Rotate a list

Given a list ["apple", "orange", "grapes", "bananas"], rotate it by removing the first item and placing it on the end to yield ["orange", "grapes", "bananas", "apple"]
ExpandDiskEdit
fantom
list := ["apple", "orange", "grapes", "bananas"]
list.add(list.removeAt(0))

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