[Issue 11111] std.algorithm.canFind fails to find in range

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Sep 23 14:43:31 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=11111


Mariusz Gliwiński <alienballance at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID


--- Comment #2 from Mariusz Gliwiński <alienballance at gmail.com> 2013-09-23 14:43:30 PDT ---
I'm sorry for reporting false bug-report then.

size_t canFind(alias pred = "a == b", Range, Ranges...)(Range haystack, Ranges
needles);

It's "Ranges" and not "Range" as i've seen, and:

"if used directly in the condition of an if statement or loop, the result will
be true if one of the needles is found and false if none are found"

just looked like "find the first index of needle from Range of needles".

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list