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);

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