What am I doing wrong here - canFind with iota is not working

bearophile via Digitalmars-d digitalmars-d at puremagic.com
Fri Feb 27 11:36:27 PST 2015


>     immutable float item = 0.174531f;
>     r.canFind!q{ feqrel(cast()a, cast()b) >= 21 }(item).writeln;
> }

With a recent Phobos bug fix you can now write:

     r.canFind!q{ feqrel(a, b) >= 21 }(item).writeln;

Bye,
bearophile


More information about the Digitalmars-d mailing list