There are several ways to construct an immutable list in Scala (see contrived example code below). You can use a mutable ListBuffer, create a var list and modif
var
To create a list of string, use the following:
val l = List("is", "am", "are", "if")