Thanks for replying. I don't think your code is what I am looking for. I'll try to explain again:
For the sake of illustration let's say the size of the substring I am looking for is 3. Ideally, what I would like in the end is a list for all possible permutations with repetitions and a count how often they occur. For this example, the list would look something like that:
aaa 0In reply to Re^2: Permutation with repetitions
by umeboshi
in thread Permutation with repetitions
by umeboshi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |