findSkip
fn
bool findSkip(alias pred = "a == b", R1, R2)(ref R1 haystack, R2 needle) if (isForwardRange!R1 && isForwardRange!R2
&& is(typeof(binaryFun!pred(haystack.front, needle.front))))- Finds
needleinhaystackand positionshaystack - right after the first occurrence of
needle. - If no needle is provided, the
haystackis advanced as long aspred - evaluates to
true. - Similarly, the haystack is positioned so as
predevaluates tofalsefor haystack.front.- For more information about
predsee find.
*
Parameters
fn
size_t findSkip(alias pred, R1)(ref R1 haystack) if (isForwardRange!R1 && ifTestable!(typeof(haystack.front), unaryFun!pred))ditto