<permutations> ( seq -- permutations )


Vocabulary
math.combinatorics

Inputs and outputs
seqa sequence
permutationsa 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 ;