Variations

Variations or k-permutations of n are the different ordered arrangements of a k-element subset of an n-set.

variations(Integer, Integer)

Given two integers n and k, n greater or equal than k, computes all possible arrangements described above.

variations(List | Vector, Integer)

Given a list or a vector with n elements and k, n greater or equal than k, returns a list with all the k-subsets.