Handbook
Glossary
(>permutation) ( seq n index -- seq )
Vocabulary
math
.
combinatorics
.
private
Inputs
seq
an
object
n
an
object
index
an
object
Outputs
seq
an
object
Definition
USING:
kernel
sequences.private
;
IN:
math.combinatorics.private
:
(>permutation)
( seq n index -- seq )
swap
[
dupd
head-to-index
<slice-unsafe>
]
dip
bump-indices
;