Vocabularymath.
combinatoricsInputsOutputsWord descriptionReturns all the ways to take n (possibly the same) items from the sequence of items.
ExamplesUSING: math.combinatorics prettyprint ;
{ 1 2 } 2 all-selections .
{ { 1 1 } { 1 2 } { 2 1 } { 2 2 } }
Definition