def comb(m, n) (0...n).to_a.each_combination(m) { |p| puts(p) } end