View Problem

Define an empty list

Assign the variable "list" to a list with no elements
ExpandDiskEdit
scala
val list = Nil
ExpandDiskEdit
scala
val list = List()
ExpandDiskEdit
scala
val list : List[String] = 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;

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