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