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
csharp 3
var list = new List<object>();
ExpandDiskEdit
fantom
list := [,]
ExpandDiskEdit
cpp C++/CLI .NET 2.0
Generic::List<String^>^ list = gcnew Generic::List<String^>();
ExpandDiskEdit
cpp
std::list<std::string> list;

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