splitterN

Split range using multiple separators stored as elements in separators.

splitterN
(
R
S
)
(
scope return R range
,
const scope S separators
)

Examples

auto result = "a-b+c".splitterN("+-");
assert(result.equal(["a", "b", "c"].s[]));

See Also

Meta