From 8bacbc2d2f958b77b6ee5091799263289f6abfbc Mon Sep 17 00:00:00 2001 From: Jonathan <30177086+MonliH@users.noreply.github.com> Date: Fri, 13 Mar 2020 20:33:24 -0400 Subject: [PATCH 1/2] Update raku.html.markdown --- raku.html.markdown | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/raku.html.markdown b/raku.html.markdown index 4f397589..382e4e14 100644 --- a/raku.html.markdown +++ b/raku.html.markdown @@ -284,8 +284,8 @@ else". You can have as many parameters *before* a slurpy one, but not *after*. sub as-many($head, *@rest) { @rest.join(' / ') ~ " !"; } -say as-many('Happy', 'Happy', 'Birthday'); # OUTPUT: «Happy / Birthday !␤» -say 'Happy', ['Happy', 'Birthday'], 'Day'; # OUTPUT: «Happy / Birthday / Day !␤» +say as-many('Happy', 'Happy', 'Birthday'); # OUTPUT: «Happy / Birthday !␤» +say as-many('Happy', ['Happy', 'Birthday'], 'Day'); # OUTPUT: «Happy / Birthday / Day !␤» # Note that the splat (the *) did not consume the parameter before it. From 9bf06f148415d99d89c58d81376142414587cbb3 Mon Sep 17 00:00:00 2001 From: Jonathan <30177086+MonliH@users.noreply.github.com> Date: Fri, 13 Mar 2020 21:25:57 -0400 Subject: [PATCH 2/2] Fixed typo in sample output --- raku.html.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/raku.html.markdown b/raku.html.markdown index 382e4e14..2460ac7e 100644 --- a/raku.html.markdown +++ b/raku.html.markdown @@ -769,7 +769,7 @@ sub unpack_array( @array [$fst, $snd] ) { # (^ remember the `[]` to interpolate the array) } unpack_array(@tail); -# OUTPUT: «My first is 3, my second is 3! All in all, I'm 2 3.␤» +# OUTPUT: «My first is 2, my second is 3! All in all, I'm 2 3.␤» # If you're not using the array itself, you can also keep it anonymous, # much like a scalar: