mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-08-17 20:11:57 +02:00
Update raku.html.markdown
This commit is contained in:
@@ -285,7 +285,7 @@ sub as-many($head, *@rest) {
|
|||||||
@rest.join(' / ') ~ " !";
|
@rest.join(' / ') ~ " !";
|
||||||
}
|
}
|
||||||
say as-many('Happy', 'Happy', 'Birthday'); # OUTPUT: «Happy / Birthday !»
|
say as-many('Happy', 'Happy', 'Birthday'); # OUTPUT: «Happy / Birthday !»
|
||||||
say 'Happy', ['Happy', 'Birthday'], 'Day'; # OUTPUT: «Happy / Birthday / Day !»
|
say as-many('Happy', ['Happy', 'Birthday'], 'Day'); # OUTPUT: «Happy / Birthday / Day !»
|
||||||
|
|
||||||
# Note that the splat (the *) did not consume the parameter before it.
|
# Note that the splat (the *) did not consume the parameter before it.
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user