splitAfter

Undocumented in source. Be warned that the author may not have intended to support it.
splitAfter
(
alias pred
R
)
if (
isForwardRange!R
)

Examples

import std.ascii: isDigit;
assert(`aa1bb`.splitAfter!(a => a.isDigit) == tuple(`aa1`, `bb`));
assert(`aa1`.splitAfter!(a => a.isDigit) == tuple(`aa1`, ``));

Meta