[Issue 19765] New: std.algorithm.searching.findAmong doesn't `save` like it should

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Mar 26 19:42:02 UTC 2019


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

          Issue ID: 19765
           Summary: std.algorithm.searching.findAmong doesn't `save` like
                    it should
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: phobos
          Assignee: nobody at puremagic.com
          Reporter: ag0aep6g at gmail.com

import std.algorithm;
import std.range;
void main()
{
    auto choices = inputRangeObject("b");
    auto f = "foobar".findAmong(choices);
    assert(equal(f, "bar")); /* fails; should pass */
}

--


More information about the Digitalmars-d-bugs mailing list