13 lines
196 B
Smalltalk
13 lines
196 B
Smalltalk
(0 to: 4) combinations: 3 atATimeDo: [ :x | Transcript cr; show: x printString].
|
|
|
|
"output on Transcript:
|
|
#(0 1 2)
|
|
#(0 1 3)
|
|
#(0 1 4)
|
|
#(0 2 3)
|
|
#(0 2 4)
|
|
#(0 3 4)
|
|
#(1 2 3)
|
|
#(1 2 4)
|
|
#(1 3 4)
|
|
#(2 3 4)"
|