Remove all items

var x = new HashMap[String, Int]
x["four"] = 4
x.clear
assert x.keys.has("four") == false

ENSURE is_empty

Property definitions

core $ Map :: clear
	# 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
lib/core/collection/abstract_collection.nit:753,2--761,22

counter $ Counter :: clear
	redef fun clear do
		sum = 0
		map.clear
	end
lib/counter/counter.nit:78,2--81,4

core $ HashMap :: clear
	redef fun clear do raz
lib/core/collection/hash_collection.nit:265,2--23

core $ ArrayMap :: clear
	redef fun clear do _items.clear
lib/core/collection/array.nit:726,2--32