- .nonEmpty
// 數(shù)組(存有很多字符串)中如果有 idValue(某個String類型的),就把idValue置為null
if(arr.toSet.intersect(Set(idValue)).toList.nonEmpty){idValue=null}
- .contians
// 數(shù)組(存有很多字符串)中如果有 idValue(某個String類型的),就把idValue置為null
if(arr.toSet.intersect(Set(idValue)).toList.nonEmpty){idValue=null}