import std.stdio, std.algorithm; void main() { auto x = "abcd"; writeln(isSorted(x)); auto y = "acbd"; writeln(isSorted(y)); } Maybe this line: https://github.com/D-Programming-Language/phobos/blob/master/std/algorithm.d#L9237 for (; !ahead.empty; ahead.popFront(), ++i) Should be: for (; !ahead.empty; ahead.popFront(), r.popFront(), ++i) Bye, bearophile
This used to print true-false, now prints true-true. Is this a
bug?
- Regarding isSorted bearophile
- Re: Regarding isSorted Jonathan M Davis
- Re: Regarding isSorted Brad Anderson
- Re: Regarding isSorted bearophile
- Re: Regarding isSorted Jos van Uden
- Re: Regarding isSorted bearophile