// Version 1
myMap.forEach { key, value -> if (value == "A") myMap.remove(key) }
// Version 2
with (myMap) {
val filtered = filterValues { it != "A" }
clear()
putAll(filtered)
}
如何正确使用此代码?
答案 0 :(得分:0)
lists.contains(pages, 'Verify Account')
- >您错过了#
关键字,因此表达式无效