Is eqivalent map[key] = null and map.remove(key)?
map[key] = null
map.remove(key)
No, map[key] = null doesn't remove a key, but sets value to null
null
map := [key: val] map.remove(key) echo(map.containsKey(key)) // false
map := Obj:Obj?[key: val] map.set(key, null) echo(map.containsKey(key)) // true
Login or Signup to reply.
Akcelisto Sun 15 Jul 2012
Is eqivalent
map[key] = null
andmap.remove(key)
?Yuri Strot Sun 15 Jul 2012
No,
map[key] = null
doesn't remove a key, but sets value tonull