select!(&block)
Equivalent to Set#keep_if, but returns nil if no changes were made.
# File lib/set.rb, line 342 def select!(&block) block or return enum_for(__method__) n = size keep_if(&block) size == n ? nil : self end