Handbook
Glossary
<permutations> ( seq -- permutations )
Vocabulary
math
.
combinatorics
Inputs
seq
a
sequence
Outputs
permutations
a
sequence
Word description
An efficient sequence containing the lexicographical permutations of
seq
.
Definition
USING:
kernel
sequences
;
IN:
math.combinatorics
:
<permutations>
( seq -- permutations )
[
length
factorial
]
keep
permutations
boa
;