Bug 18735 – all versions of find and canfind should identify usage of predicate
Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2018-04-06T01:35:57Z
Last change time
2022-07-24T02:55:51Z
Keywords
bootcamp, ddoc, pull
Assigned to
No Owner
Creator
Steven Schveighoffer
Comments
Comment #0 by schveiguy — 2018-04-06T01:35:57Z
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.
Comment #1 by dlang-bot — 2022-07-23T13:48:21Z
@iuliadmtru created dlang/phobos pull request #8516 "Fix issue 18735 all versions of find and canfind should identify usag…" fixing this issue:
- Fix issue 18735 all versions of find and canfind should identify usage of predicate
https://github.com/dlang/phobos/pull/8516
Comment #2 by dlang-bot — 2022-07-24T02:55:51Z
dlang/phobos pull request #8516 "Fix issue 18735 all versions of find and canfind should identify usag…" was merged into master:
- a61aee0f89b740538508da225b39fb884c0bca01 by Iulia Dumitru:
Fix issue 18735 all versions of find and canfind should identify usage of predicate
https://github.com/dlang/phobos/pull/8516