Equivalent to Set#flatten, but replaces the receiver with the result in place. Returns nil if no modifications were made.
Source Code
# File set.rb, line 144 def flatten! if detect { |e| e.is_a?(Set) } replace(flatten()) else nil end end
Equivalent to Set#flatten, but replaces the receiver with the result in place. Returns nil if no modifications were made.
# File set.rb, line 144 def flatten! if detect { |e| e.is_a?(Set) } replace(flatten()) else nil end end
<code/>and<pre/>for code samples.