Parents: | math.combinatorics |
Word | Stack effect |
nths-unsafe | ( indices seq -- seq' ) |
Word | Stack effect |
(>permutation) | ( seq n index -- seq ) |
(next-permutation) | ( seq -- seq ) |
(nths-unsafe) | ( indices seq -- seq' ) |
<permutation-iota> | ( seq -- <iota> ) |
>permutation | ( factoradic -- permutation ) |
bump-indices | ( seq n -- ) |
combination-indices | ( x! p n -- seq ) |
combinations-quot | ( seq k quot -- seq quot' ) |
combinations-with-replacement-quot | ( seq k quot -- seq quot' ) |
cut-point | ( seq -- n ) |
factoradic | ( n -- factoradic ) |
find-max-index | ( seq n -- i ) |
greater-from-last | ( n seq -- i ) |
increment-last | ( seq -- ) |
increment-rest | ( i seq -- ) |
nCk-with-replacement | ( n k -- nCk ) |
next-combination | ( seq n -- ) |
next-combination-with-replacement | ( seq n -- ) |
next-selection | ( seq n -- ) |
permutation-indices | ( n seq -- permutation ) |
permutations-quot | ( seq quot -- seq quot' ) |
possible? | ( n m -- ? ) |
reverse-tail! | ( n seq -- seq ) |
selections-quot | ( seq n quot -- seq quot' ) |
should-swap? | ( start curr seq -- ? ) |
twiddle | ( n k -- n k ) |
unique-permutations | ( ... seq i n quot: ( ... elt -- ... ) -- ... ) |