File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -1213,12 +1213,13 @@ See L<this blog post for more elaboration on rotor|http://blogs.perl.org/users/z
1213
1213
Available as of 6.e language version (early implementation exists in Rakudo
1214
1214
compiler 2022.02+).
1215
1215
1216
- say rotor(3, 'a'..'h').join('|'); # OUTPUT: «a b c|d e f»
1217
- say rotor(3, 'a'..'h', :partial).join('|'); # OUTPUT: «a b c|d e f|g h»
1218
- say rotor(2 => 1, 'a'..'h').join('|'); # OUTPUT: «a b|d e|g h»
1219
- say rotor(3 => -1, 'a'..'h').join('|'); # OUTPUT: «a b c|c d e|e f g»
1220
- say rotor(1 => 1, 3 => -1, 'a'..'h', :partial).join('|');
1221
- # OUTPUT: «a|c d e|e|g h»
1216
+ =for code :solo :preamble<use v6.e.PREVIEW;>
1217
+ say rotor(3, 'a'..'h').join('|'); # OUTPUT: «a b c|d e f»
1218
+ say rotor(3, 'a'..'h', :partial).join('|'); # OUTPUT: «a b c|d e f|g h»
1219
+ say rotor(2 => 1, 'a'..'h').join('|'); # OUTPUT: «a b|d e|g h»
1220
+ say rotor(3 => -1, 'a'..'h').join('|'); # OUTPUT: «a b c|c d e|e f g»
1221
+ say rotor(1 => 1, 3 => -1, 'a'..'h', :partial).join('|');
1222
+ # OUTPUT: «a|c d e|e|g h»
1222
1223
1223
1224
=head2 method batch
1224
1225
You can’t perform that action at this time.
0 commit comments