Module: Enumerable

Defined in:
lib/core/enumerable.rb

Instance Method Summary collapse

Instance Method Details

#pairsObject



3
4
5
# File 'lib/core/enumerable.rb', line 3

def pairs
  respond_to?(:combination) ? combination(2) : to_a.combination(2)
end