Top-rated recipes tagged "permutation" but not "algorithms" and "generators"http://code.activestate.com/recipes/tags/permutation-algorithms-generators/top/2016-06-11T08:42:41-07:00ActiveState Code RecipesPermutations by recursive Heap's method (Batch)
2016-06-11T08:42:41-07:00Antoni Gualhttp://code.activestate.com/recipes/users/4182514/http://code.activestate.com/recipes/580678-permutations-by-recursive-heaps-method/
<p style="color: grey">
Batch
recipe 580678
by <a href="/recipes/users/4182514/">Antoni Gual</a>
(<a href="/recipes/tags/permutation/">permutation</a>, <a href="/recipes/tags/recursion/">recursion</a>).
</p>
<p>Setlocal / endlocal allow for recursion in batch.
Values can be passed by value and by reference, the later can return a value to the caller.</p>