View Problem

Remove the last element of a list

DiskEdit
perl
pop @list;
ExpandDiskEdit
cpp C++/CLI .NET 2.0
fruit->RemoveAt(fruit->Count - 1);
DiskEdit
csharp
List<string> fruits = new List() { "apple", "banana", "cherry" };
fruits.RemoveAt(fruits.Length - 1);
DiskEdit
clojure
(pop ["Apple" "Banana" "Carrot"])

Submit a new solution for perl, cpp, csharp, or clojure
There are 20 other solutions in additional languages (erlang, fantom, fsharp, groovy ...)