📅  最后修改于: 2022-03-11 15:00:57             🧑  作者: Mango
val set = Set(1,2,3,4)
val subset = Set(1,2)
scala> subset.subsetOf(set)
res0: Boolean = true
scala> set.subsetOf(subset)
res1: Boolean = false