var seq = Seq[String]() seq = seq :+ "hello" var set = Set[String]() set += "hello"
Seq和Set之间有什么区别?
scala set seq
scala ×1
seq ×1
set ×1