View Problem

Define a static list

Define the list [One, Two, Three, Four, Five]
ExpandDiskEdit
scala
val list = "One" :: "Two" :: "Three" :: "Four" :: "Five" :: Nil
ExpandDiskEdit
scala
val list = List("One", "Two", "Three", "Four", "Five")
ExpandDiskEdit
scala
val list: List[String] = List("One", "Two", "Three", "Four", "Five")

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