permutations
permutations(n)
permutations(n, k)
Try it yourself:
$1 |
permutations(5)
|
|
$2 |
permutations(5, 3)
|
See also:
All functions