Jump to content

Multisplit: Difference between revisions

m
(fix input string and correct output that was changed by anonymous)
Line 41:
void main() {
auto s = "a!===b=!=c==d";
auto divs = ["==", "!=", "="];
auto lst = multiSplit(s, divs);
Line 54:
}</lang>
Output (separator locations indicated by braces):
<pre>a {} {} b {} {} c {} d</pre>
 
=={{header|F_Sharp|F#}}==
6,962

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.