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
fantom
list := [,]

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