Method: Set#flatten!
- Defined in:
- lib/set.rb
#flatten! ⇒ Object
Equivalent to Set#flatten, but replaces the receiver with the result in place. Returns nil if no modifications were made.
386 387 388 |
# File 'lib/set.rb', line 386 def flatten! replace(flatten()) if any?(Set) end |