[Issue 11111] std.algorithm.canFind should support Needles...

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Nov 6 13:02:20 UTC 2023


https://issues.dlang.org/show_bug.cgi?id=11111

Dlang Bot <dlang-bot at dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull

--- Comment #4 from Dlang Bot <dlang-bot at dlang.rocks> ---
@ntrel created dlang/phobos pull request #8845 "Fix Issue 11111 -
std.algorithm.canFind should support Needles..." fixing this issue:

- 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