View Problem

Remove an element from a list by index

Given the list [Apple, Banana, Carrot], remove the first element to produce the list [Banana, Carrot]
DiskEdit
ruby
['Apple', 'Banana', 'Carrot'].shift
ExpandDiskEdit
ruby
fruit.delete_at(0)
DiskEdit
csharp c# 2.0
class Solution1516
{
static void Main()
{
List<string> fruit = new List<string>() { "Apple", "Banana", "Carrot" };
fruit.RemoveAt(0);
}
}

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