lockstep alternative for StoppingPolicy.longest

Andrej Mitrovic andrej.mitrovich at gmail.com
Mon Sep 17 15:52:31 PDT 2012


On 9/18/12, Andrej Mitrovic <andrej.mitrovich at gmail.com> wrote:
>     foreach (aa, bb; lockstep(arr1, arr2))
>     {
>         if (aa == sentinel)
>         {
>             if (aa % 2 == 0)

Gah I've messed up the simple example. If aa was a sentinel then it
meant I wouldn't check it at all, I'd try to check 'bb' instead.


More information about the Digitalmars-d-learn mailing list