findInOrder

Find needles in order in haystack.

findInOrder
(
alias pred = `a == b`
alias finder = find
R
E...
)

Examples

import std.range.primitives : empty;
assert(`a b c`.findInOrder(`a`, `b`, `c`));
assert(`b a`.findInOrder(`a`, `b`).empty);

Meta