I have a list of integers, say: (1,2,3,4,5)
I want to obtain all the possible lists of size 5, such that:
1. The lists can contain repeat elements, e.g. (1,1,1,2,2)
2. Ordering does not matter, e.g. (1,1,2,2,1) is the same as (1,1,1,2,2)
How do I obtain this whole list? I am actually looking for combinations of size 10 from a set of 10 integers.