lib/refinements/arrays.rb in refinements-9.5.0 vs lib/refinements/arrays.rb in refinements-9.6.0

- old
+ new

@@ -6,9 +6,11 @@ # Provides additional enhancements to the Array primitive. module Arrays refine Array do import_methods Shared::Enumerables::Many + def combinatorial?(other) = !other.empty? && size == union(other).size + def compress = dup.compress! def compress! compact! delete_if { |element| element.respond_to?(:empty?) && element.empty? }