Vocabulary

math.combinatorics.private

Inputs

Outputs

Word description

Converts an integer represented in factoradic form into its corresponding unique permutation (0-based).

Notes

For clarification, the following two statements are equivalent:

Examples

Definition

math.combinatorics.private

Inputs

factoradic | a sequence |

Outputs

permutation | a sequence |

Word description

Converts an integer represented in factoradic form into its corresponding unique permutation (0-based).

Notes

For clarification, the following two statements are equivalent:

10 factoradic >permutation
{ 1 2 0 0 } >permutation

Examples

USING: math.combinatorics.private prettyprint ;
{ 0 0 0 0 } >permutation .

{ 0 1 2 3 }

{ 0 1 2 3 }

Definition

This documentation was generated offline from a
`load-all`

image. If you want, you can also
browse the documentation from within the UI developer tools. See
the Factor website
for more information.

Factor 0.99 x86.64 (2203, heads/master-424edf64aa, Mar 8 2023 13:48:50)