Scala set contains all

val set = Set(21,12,53,44)
val subset = Set(12,53)
 
scala> subset.subsetOf(set)
res0: Boolean = true
 
scala> set.subsetOf(subset)
res1: Boolean = false
Content Protection by DMCA.com
Please Share