core :: Map :: clear
var x = new HashMap[String, Int] x["four"] = 4 x.clear assert x.keys.has("four") == false
ENSURE is_empty
is_empty
# Remove all items # # var x = new HashMap[String, Int] # x["four"] = 4 # x.clear # assert x.keys.has("four") == false # # ENSURE `is_empty` fun clear is abstract
redef fun clear do sum = 0 map.clear end
redef fun clear do raz
redef fun clear do _items.clear