Variations with repetition

Variations with repetition are the different ordered arrangements of a k-element subset of an n-set, allowing repetitions.

variations_with_repetition(Integer, Integer)

Given two integers n and k, computes all possible arrangements described above.

variations_with_repetition(List | Vector, Integer)

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