moveWhile

Undocumented in source. Be warned that the author may not have intended to support it.
moveWhile
(
alias pred
R
)
(
ref R r
)
if (
isInputRange!R
)

Examples

auto r = `xxx111`;
auto id = r.moveWhile!(a => a == 'x');
assert(id == `xxx`);
assert(r == `111`);

Meta