Module pl.permute
Permutation operations
Functions
iter (a) | an iterator over all permutations of the elements of a list. |
table (a) | construct a table containing all the permutations of a list. |
Functions
- iter (a)
-
an iterator over all permutations of the elements of a list. Please note that the same list is returned each time, so do not keep references!
Parameters:
-
a
: list-like table
Return value:
- an iterator which provides the next permutation as a list
-
- table (a)
-
construct a table containing all the permutations of a list.
Parameters:
-
a
: list-like table
Return value:
- a table of tables
-