Thread overview
[Issue 11111] std.algorithm.canFind should support Needles...
Dec 17, 2022
Iain Buclaw
Nov 06
Dlang Bot
Nov 20
Dlang Bot
June 09, 2015
https://issues.dlang.org/show_bug.cgi?id=11111

Andrei Alexandrescu <andrei@erdani.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|unspecified                 |D2

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=11111

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P2                          |P3

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

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

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

--- Comment #4 from Dlang Bot <dlang-bot@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

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

Nick Treleaven <nick@geany.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nick@geany.org

--- Comment #5 from Nick Treleaven <nick@geany.org> ---
> I don't think we have any version of find that accepts a variable amount of needles

dlang.org/phobos/std_algorithm_searching.html#findAmong

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

Nick Treleaven <nick@geany.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |enhancement

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #6 from Dlang Bot <dlang-bot@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

--