RosettaCodeData/Task/Combinations/Maple/combinations.maple
2015-02-20 00:35:01 -05:00

4 lines
144 B
Text

> combinat:-choose( 5, 3 );
[[1, 2, 3], [1, 2, 4], [1, 2, 5], [1, 3, 4], [1, 3, 5], [1, 4, 5], [2, 3, 4], [2, 3, 5],
[2, 4, 5], [3, 4, 5]]