You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/Language/faq.rakudoc
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -352,7 +352,7 @@ say "I ❤ 🦋".encode.gist; # OUTPUT: «utf8:0x<49 20 E2 9D A4 20 F0 9F A6 8B
352
352
353
353
=head2 String: How can I remove from a string some characters by index?
354
354
355
-
Use L<.comb|/routine/comb> to transform it to a L<C<Seq>|/type/Seq>, then the L<(-) infix|/language/operators#infix_-> to remove the unwanted indices:
355
+
Use L<.comb|/routine/comb> to transform it to a L<C<Seq>|/type/Seq>, then the L<(-) infix|/language/operators#infix_(-),_infix_%E2%88%96> to remove the unwanted indices:
356
356
357
357
=begin code
358
358
say '0123456789'.comb[(^* (-) (1..3, 8).flat).keys.sort].join; # OUTPUT: «045679»
0 commit comments