lib/core/facets/array/combination.rb in facets-2.6.0 vs lib/core/facets/array/combination.rb in facets-2.7.0

- old
+ new

@@ -1,9 +1,9 @@ -if RUBY_VERSION < '1.9' +class Array - require 'enumerator' + unless method_defined?(:combination) # 1.8.7+ - class Array + require 'facets/enumerator' # Yields the block to each unique combination of _n_ elements. # # a = %w|a b c d| # a.combination(3)