Bruno Campanini wrote:
Auric__ formulated the question :
Bruno Campanini wrote:
Can anybody convert this recursive procedure to a non-recursive one?
[snip]
The procedure is called, in the simplest way, with:
Call Permutation("string-to-permute").
On the one hand, yes, it can be unrolled, using some combination of
control structures.
On the other hand, *why* do you want it to be unrolled?
Why you ask me that?
It's pretty straightforward: What is the purpose of unrolling the recursive
procedure you posted? What are you trying to accomplish?
Here's a Google search that'll get you started:
https://www.google.com/search?q=stri...+non-recursive
--
Better to die quick, fighting on your feet,
than to live forever, begging on your knees.