Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
Set#delete
delete(o)
lib/set.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.3.0/lib/set.rb, line 529
def delete(o)
@hash.delete(o)
self
end
Deletes the given object from the set and returns self. Use subtract to delete many items at once.
See also
#delete?
#compare_by_identity?
#compare_by_identity
#delete_if
also in
4.1 · 4.0 · 3.4 · 3.2 · 3.1 · 3.0