Skip to content
instance method

Set#collect!

() { (A) -> A } -> self
collect! { |o| ... } → self
collect! → enumerator

Replaces the elements with ones returned by collect. Returns an enumerator if no block is given.