[Issue 11111] std.algorithm.canFind should support Needles...
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Nov 20 12:23:52 UTC 2023
https://issues.dlang.org/show_bug.cgi?id=11111
Dlang Bot <dlang-bot at dlang.rocks> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution|--- |FIXED
--- Comment #6 from Dlang Bot <dlang-bot at dlang.rocks> ---
dlang/phobos pull request #8845 "Fix Issue 11111 - std.algorithm.canFind should
support Needles..." was merged into master:
- a2c2f79dfae38492e2269bcb4e34a6c916c22091 by Nick Treleaven:
Fix Issue 11111 - std.algorithm.canFind should support Needles...
The requirement that each needle must be a range is arbitrary, so remove
it.
Note: This overload of `canFind` calls `find(haystack, needles)` which
calls `startsWith`, which accepts mixed element and range needles.
https://github.com/dlang/phobos/pull/8845
--
More information about the Digitalmars-d-bugs
mailing list