Factor Documentation
|
Home
|
Glossary
|
Search
factorcode.org
<permutations> ( seq -- permutations )
Vocabulary
math.combinatorics
Inputs and outputs
seq
a
sequence
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
;