core :: RemovableCollection :: clear
var a = [1,2,3]
a.clear
assert a.length == 0
ENSURE is_empty
# Remove all items
#
# var a = [1,2,3]
# a.clear
# assert a.length == 0
#
# ENSURE `is_empty`
fun clear is abstract
lib/core/collection/abstract_collection.nit:399,2--406,22
redef fun clear do
for node in self do remove_node(node)
end
lib/neo4j/graph/graph.nit:132,2--134,4
redef fun clear
do
for sprite in self do
sprite.context = null
sprite.sprite_set = null
end
super
for c in contexts_items do c.destroy
contexts_map.clear
contexts_items.clear
sprites_to_remap.clear
end
lib/gamnit/flat/flat_core.nit:1010,2--1021,4