nextPermutation: why possible for dchar but not for char?

monarch_dodra monarchdodra at gmail.com
Sat Dec 28 15:07:18 PST 2013


On Saturday, 28 December 2013 at 22:58:43 UTC, Ivan Kazmenko 
wrote:
> Also, the example at
> http://dlang.org/phobos/std_algorithm.html#nextPermutation
> is wrong:
> while (nextPermutation(a)) { }
> should in fact be
> do { } while (nextPermutation(a));
> as above, or we miss the very first permutation.

Noted. I'll try to fix that in the comming days. Or if anybody 
else submits the pull, I'll merge it (*hint* *hint*, *wink*)


More information about the Digitalmars-d-learn mailing list