[Issue 18735] New: all versions of find and canfind should identify usage of predicate
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Apr 6 01:35:57 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=18735
Issue ID: 18735
Summary: all versions of find and canfind should identify usage
of predicate
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Keywords: ddoc
Severity: enhancement
Priority: P1
Component: phobos
Assignee: nobody at puremagic.com
Reporter: schveiguy at yahoo.com
In the first overload of find, it says:
Elements of haystack are compared with needle by using predicate pred with
pred(haystack.front, needle)
This same description should be repeated in all flavors. It can be important
when giving a custom predicate where the two parameters are not the same type.
--
More information about the Digitalmars-d-bugs
mailing list