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