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

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Wed Jul 5 00:44:18 PDT 2017


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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |razvan.nitu1305 at gmail.com

--- Comment #1 from RazvanN <razvan.nitu1305 at gmail.com> ---
skipOver returns a bool value and so do startsWith and endsWith, so you can't
equal with "value". But I think that adding an overload to support the
construction: 

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

is useful and offers consistency.

--


More information about the Digitalmars-d-bugs mailing list