Module: DiffSet::Pairwise

Included in:
PairwisePrioritySet, PairwiseRandomSet
Defined in:
lib/diff_set/pairwise.rb

Instance Method Summary collapse

Instance Method Details

#sample(limit) ⇒ Object



7
8
9
# File 'lib/diff_set/pairwise.rb', line 7

def sample(limit)
  _in_pairs super(2 * limit)
end

#subtract(set, limit) ⇒ Object



3
4
5
# File 'lib/diff_set/pairwise.rb', line 3

def subtract(set, limit)
  _in_pairs super(set, 2 * limit)
end