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 23 other solutions in additional languages (clojure, cpp, csharp, erlang ...)