Add the new findSkip overload to the change log

This commit is contained in:
Jack Stouffer 2017-11-19 22:03:53 -05:00 committed by Sebastian Wilzbach
parent 7a2732e4b0
commit 37e3f68e5f

View file

@ -0,0 +1,12 @@
`findSkip` can now skip elements using just a predicate function
Previously, $(REF findSkip, std, algorithm, searching) could only
be used to find a specific string. Now, a new overload allows elements
in a range to be skipped over if the passed function returns `true`:
-------
import std.ascii : isWhite;
string s = " abc";
assert(findSkip!isWhite(s) == 3 && s == "abc");
assert(!findSkip!isWhite(s) && s == "abc");
-------