Metaprogramming: Difference between revisions
m
→{{header|Raku}}: Fix comments: Perl 6 --> Raku
Thundergnat (talk | contribs) (Rename Perl 6 -> Raku, alphabetize, minor clean-up) |
SqrtNegInf (talk | contribs) m (→{{header|Raku}}: Fix comments: Perl 6 --> Raku) |
||
Line 1,111:
(formerly Perl 6)
It is trivial to add a new operator. Most
There is no a built in factorial operator
<lang perl6>sub postfix:<!> { [*] 1..$^n }
Line 1,137:
a2 a3rd a17th a32nd a95 a144th a201st
a144th a17th a2 a201st a32nd a3rd a95</pre>
Grammar mixins work in
<lang perl6>say "Foo = $foo\n"; # normal double quotes
say Q:qq 【Foo = $foo\n】; # a more explicit derivation, new quotes</lang>
|