item
in the collection ?Comparisons are done with ==
assert [1,2,3].has(2) == true
assert [1,2,3].has(9) == false
assert [1..5[.has(2) == true
assert [1..5[.has(9) == false
# Is `item` in the collection ?
# Comparisons are done with ==
#
# assert [1,2,3].has(2) == true
# assert [1,2,3].has(9) == false
# assert [1..5[.has(2) == true
# assert [1..5[.has(9) == false
fun has(item: nullable Object): Bool
do
for i in self do if i == item then return true
return false
end
lib/core/collection/abstract_collection.nit:88,2--99,4