@@ -1183,14 +1183,14 @@ If C<$delimiter> is a string, it is searched for literally and not treated
1183
1183
as a regex. You can also provide multiple delimiters by specifying them as a
1184
1184
list; mixing Cool and Regex objects is OK.
1185
1185
1186
- say split(';', "a;b;c").raku; # OUTPUT: «("a", "b", "c")»
1186
+ say split(';', "a;b;c").raku; # OUTPUT: «("a", "b", "c").Seq »
1187
1187
say split(';', "a;b;c", 2).raku; # OUTPUT: «("a", "b;c").Seq»
1188
1188
1189
- say split(';', "a;b;c,d").raku; # OUTPUT: «("a", "b", "c,d")»
1190
- say split(/\;/, "a;b;c,d").raku; # OUTPUT: «("a", "b", "c,d")»
1191
- say split(/<[;,]>/, "a;b;c,d").raku; # OUTPUT: «("a", "b", "c", "d")»
1189
+ say split(';', "a;b;c,d").raku; # OUTPUT: «("a", "b", "c,d").Seq »
1190
+ say split(/\;/, "a;b;c,d").raku; # OUTPUT: «("a", "b", "c,d").Seq »
1191
+ say split(/<[;,]>/, "a;b;c,d").raku; # OUTPUT: «("a", "b", "c", "d").Seq »
1192
1192
1193
- say split(['a', /b+/, 4], '1a2bb345').raku; # OUTPUT: «("1", "2", "3", "5")»
1193
+ say split(['a', /b+/, 4], '1a2bb345').raku; # OUTPUT: «("1", "2", "3", "5").Seq »
1194
1194
1195
1195
By default, split omits the matches, and returns a list of only those parts of
1196
1196
the string that did not match. Specifying one of the C < :k, :v, :kv, :p > adverbs
@@ -1227,8 +1227,8 @@ to C<split>.
1227
1227
Note that empty chunks are not removed from the result list.
1228
1228
For that behavior, use the C < :skip-empty > named argument:
1229
1229
1230
- say ("f,,b,c,d".split: /","/ ).raku; # OUTPUT: «("f", "", "b", "c", "d")»
1231
- say ("f,,b,c,d".split: /","/, :skip-empty).raku; # OUTPUT: «("f", "b", "c", "d")»
1230
+ say ("f,,b,c,d".split: /","/ ).raku; # OUTPUT: «("f", "", "b", "c", "d").Seq »
1231
+ say ("f,,b,c,d".split: /","/, :skip-empty).raku; # OUTPUT: «("f", "b", "c", "d").Seq »
1232
1232
1233
1233
= head2 routine lines
1234
1234
0 commit comments