📅  最后修改于: 2022-03-11 15:04:36.510000             🧑  作者: Mango
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