Vocabularymath.
combinatoricsInputsOutputsWord descriptionOutputs a sequence containing all combinations of
seq choosing
k elements, in lexicographical order.
ExamplesUSING: math.combinatorics prettyprint ;
{ "a" "b" "c" "d" } 2 all-combinations .
{
{ "a" "b" }
{ "a" "c" }
{ "a" "d" }
{ "b" "c" }
{ "b" "d" }
{ "c" "d" }
}
Definition