core :: Collection :: is_empty
assert [1,2,3].is_empty == false assert [1..1[.is_empty == true
# Is there no item in the collection? # # assert [1,2,3].is_empty == false # assert [1..1[.is_empty == true fun is_empty: Bool do return length == 0
# assert not [1..10[.is_empty # assert not [1..1].is_empty # assert [1..-10].is_empty redef fun is_empty do return first >= after
redef fun is_empty do mutex.lock var r = real_collection.is_empty mutex.unlock return r end
redef fun is_empty do return false
redef fun is_empty do return _length == 0
redef fun is_empty do return self.map.is_empty
redef fun is_empty do return target.is_empty
redef fun is_empty do return prod.number_of_children == 0
# var tree = new OrderedTree[Int] # assert tree.is_empty # tree.add(null, 1) # assert not tree.is_empty redef fun is_empty: Bool do return roots.is_empty
redef fun is_empty do return seq.is_empty
redef fun is_empty do return items.is_empty
redef fun is_empty do if is_leaf then return data.is_empty assert children.length >= 4 return data.is_empty and children[0].is_empty and children[1].is_empty and children[2].is_empty and children[3].is_empty end
redef fun is_empty do return _array.is_empty
# O(1) redef fun is_empty do return _head == null
redef fun is_empty: Bool do return not (_length > 0) end
redef fun is_empty do return _the_length == 0
redef fun is_empty do return length == 0
# Wait until the Queue is empty redef fun is_empty do mutex.lock while not real_collection.is_empty do self.cond.wait(mutex) mutex.unlock return true end