Jump to content

Named parameters: Difference between revisions

m
→‎{{header|Raku}}: Fix comment: Perl 6 --> Raku
(Rename Perl 6 -> Raku, alphabetize, minor clean-up)
m (→‎{{header|Raku}}: Fix comment: Perl 6 --> Raku)
Line 1,412:
{{works with|Rakudo|#22 "Thousand Oaks"}}
 
Perl 6Raku's support for optional parameters is much like Python's. Consider this declaration:
 
<lang perl6>sub funkshun ($a, $b?, $c = 15, :$d, *@e, *%f) {
2,392

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.