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()

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