fork download
  1. [0,1,2,5,6,7].combination(4){|x| puts x.join(" ") }
Success #stdin #stdout 0.01s 8020KB
stdin
Standard input is empty
stdout
0 1 2 5
0 1 2 6
0 1 2 7
0 1 5 6
0 1 5 7
0 1 6 7
0 2 5 6
0 2 5 7
0 2 6 7
0 5 6 7
1 2 5 6
1 2 5 7
1 2 6 7
1 5 6 7
2 5 6 7