Named parameters: Difference between revisions
m
→{{header|Perl 6}}
SqrtNegInf (talk | contribs) |
|||
Line 993:
So, if we defined the function like this:
<lang perl6>sub funkshun ($a, $b?, :$c = 15, :$d, *@e, *%f) {
say "$a $b $c $d";
say join ' ', @e;
|