val list = List(1,2,3) // or you can specify the type: val list: List[Int] = List(1,2,3) // or use the :: syntax (with or without the type specified) val list = 1 :: 2 :: 3 :: Nil