Multisplit: Difference between revisions
m
→{{header|Raku}}: .perl -> .raku
(Added Wren) |
SqrtNegInf (talk | contribs) m (→{{header|Raku}}: .perl -> .raku) |
||
Line 1,654:
=={{header|Raku}}==
(formerly Perl 6)
{{
<lang perl6>sub multisplit($str, @seps) { $str.split(/ ||@seps /, :v) }
Line 1,660:
# Print the strings.
say @chunks».Str.
# Print the positions of the separators.
|