[Issue 17525] New: std.algorithm.searching.skipOver should have a single argument with pred version

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon Jun 19 08:14:17 PDT 2017


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

          Issue ID: 17525
           Summary: std.algorithm.searching.skipOver should have a single
                    argument with pred version
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: phobos
          Assignee: nobody at puremagic.com
          Reporter: jack at jackstouffer.com

A la startsWith and endsWith, I should be able to do the following with
skipOver

    auto s = "\tvalue";
    assert(s.skipOver!isWhite.equal("value"));

--


More information about the Digitalmars-d-bugs mailing list