Variations
Variations or -permutations of are the different ordered arrangements of a -element subset of an -set.
Syntax
variations(Integer, Integer)
variations(List | Vector, Integer)
Description
Given two integers and , , computes all possible arrangements described above.
Given a list or a vector with elements and , , returns a list with all the -subsets.