Skip to content

Commit

Permalink
Fix slip example error
Browse files Browse the repository at this point in the history
  • Loading branch information
MorayJ committed Dec 8, 2020
1 parent 07c6231 commit 4293658
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/Type/Slip.pod6
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ it behaves closer to the C<.Slip> method than the C<slip> subroutine.
=for code
my $l = (1, 2, 3);
say (1, slip 2, 3).raku; # says (1, 2, 3) , slips 2, 3 into (1, …)
say (0, slip $l).raku; # says (0, $(1, 2, 3)), $l does not break apart
say (0, slip $l).raku; # says (0, 1, 2, 3) , slips from $l into (0, …)
say (0, $l.Slip).raku; # says (0, 1, 2, 3) , slips from $l into (0, …)
say (|$l).raku; # says slip(1, 2, 3) , breaks apart $l
say (0, (|$l, 4), 5); # says (0 (1 2 3 4) 5), slips from $l into (…, 4)
Expand Down

0 comments on commit 4293658

Please sign in to comment.