Thread overview
[Issue 17634] variadic overload of std.algorithm.searching.countUntil should return which needle was found
Jul 13, 2017
RazvanN
Jul 13, 2017
RazvanN
Sep 01, 2017
b2.temp@gmx.com
Sep 01, 2017
b2.temp@gmx.com
Mar 21, 2020
Basile-z
Oct 15, 2021
Dlang Bot
Dec 17, 2022
Iain Buclaw
July 13, 2017
https://issues.dlang.org/show_bug.cgi?id=17634

RazvanN <razvan.nitu1305@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |razvan.nitu1305@gmail.com
           Assignee|nobody@puremagic.com        |razvan.nitu1305@gmail.com

--
July 13, 2017
https://issues.dlang.org/show_bug.cgi?id=17634

RazvanN <razvan.nitu1305@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|razvan.nitu1305@gmail.com   |nobody@puremagic.com

--
September 01, 2017
https://issues.dlang.org/show_bug.cgi?id=17634

b2.temp@gmx.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |b2.temp@gmx.com

--- Comment #1 from b2.temp@gmx.com ---
"dropExactly(c).startWith(...)" would allow to find the needle

also we can imagine a struct-based return type that doesn't break the current code:

struct countUntilResult()
{
ptrdiff_t pos; size_t index;
}

--
September 01, 2017
https://issues.dlang.org/show_bug.cgi?id=17634

--- Comment #2 from b2.temp@gmx.com ---
(In reply to b2.temp from comment #1)
> "dropExactly(c).startWith(...)" would allow to find the needle
> 
> also we can imagine a struct-based return type that doesn't break the current code:
> 
> struct countUntilResult()
> {
> ptrdiff_t pos; size_t index;
> }

Something like

struct countUntilResult()
{
    ptrdiff_t pos;
    size_t index;
    alias pos this;
}

--
March 21, 2020
https://issues.dlang.org/show_bug.cgi?id=17634

Basile-z <b2.temp@gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|b2.temp@gmx.com             |

--
October 15, 2021
https://issues.dlang.org/show_bug.cgi?id=17634

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

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

--- Comment #3 from Dlang Bot <dlang-bot@dlang.rocks> ---
@wilzbach updated dlang/phobos pull request #5618 "Fix Issue 17634 - variadic overload of std.algorithm.searching.countUntil should return which needle was found" fixing this issue:

- Fix Issue 17634 - variadic overload of std.algorithm.searching.countUntil should return which needle was found

https://github.com/dlang/phobos/pull/5618

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

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P4

--
December 01
https://issues.dlang.org/show_bug.cgi?id=17634

--- Comment #4 from dlangBugzillaToGithub <robert.schadek@posteo.de> ---
THIS ISSUE HAS BEEN MOVED TO GITHUB

https://github.com/dlang/phobos/issues/10257

DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB

--