View Problem

Define an empty list

Assign the variable "list" to a list with no elements
DiskEdit
ruby
list = []
DiskEdit
ruby
list = Array.new
ExpandDiskEdit
erlang
List = [],
ExpandDiskEdit
csharp 3
var list = new List<object>();
ExpandDiskEdit
cpp C++/CLI .NET 2.0
Generic::List<String^>^ list = gcnew Generic::List<String^>();
ExpandDiskEdit
cpp
std::list<std::string> list;
ExpandDiskEdit
fantom
list := [,]

Submit a new solution for ruby, erlang, csharp, cpp ...
There are 19 other solutions in additional languages (clojure, fsharp, go, groovy ...)