Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
Set#delete?
(A) -> self?
delete?(o)
lib/set.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.4.1/lib/set.rb, line 539
def delete?(o)
delete(o) if include?(o)
end
Deletes the given object from the set and returns self. If the object is not in the set, returns nil.
See also
#delete
#delete_if
#compare_by_identity?
#difference
also in
4.1 · 4.0 · 3.3 · 3.2 · 3.1 · 3.0