Combinations: Difference between revisions
Content deleted Content added
No edit summary |
|||
Line 1,673: | Line 1,673: | ||
=={{header|SETL}}== |
=={{header|SETL}}== |
||
<lang SETL>print({0..4} npow 3);</lang> |
<lang SETL>print({0..4} npow 3);</lang> |
||
=={{header|Smalltalk}}== |
|||
{{works with|Pharo|1.3-13315}} |
|||
<lang smalltalk> |
|||
(0 to: 4) |
|||
combinations: 3 atATimeDo: [ :x | |
|||
':-)' logCr: x ]. |
|||
"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)" |
|||
</lang> |
|||
=={{header|Standard ML}}== |
=={{header|Standard ML}}== |