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