core :: RemovableCollection :: remove
item
var a = [1,2,3,1,2,3]
a.remove 2
assert a == [1,3,1,2,3]
redef fun remove(item)
do
var map = self.map
var c = map._first_item
while c != null do
if c._value == item then
map.remove_node(c._key)
return
end
c = c._next_item
end
end
lib/core/collection/hash_collection.nit:350,2--361,4
redef fun remove(node) do
for n in self do
if node == n then
remove_node(n)
return
end
end
end
lib/neo4j/graph/graph.nit:136,2--143,4
redef fun remove(e)
do
var node = search_node_after(e, _head)
if node != null then remove_node(node)
end
lib/core/collection/list.nit:176,2--180,4
redef fun remove(item) do remove_node(item)
lib/core/collection/hash_collection.nit:459,2--44