in reply to Re: loop in loop method evasion
in thread loop in loop method evasion

While your algorithm does what the OP wants, it is misnamed. It does not return the permutations of the list. The list only contains one zero, yet the output contains strings with multiple zeroes.