RCRPG/Raku: Difference between revisions
m
→RCRPG/Raku: Fix syntax highlighting
Thundergnat (talk | contribs) m (Thundergnat moved page RCRPG/Perl 6 to RCRPG/Raku: Name of the language has changed) |
Thundergnat (talk | contribs) m (→RCRPG/Raku: Fix syntax highlighting) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1:
{{collection|RCRPG}}
=={{example|task=RCRPG|language=Raku}}==
This [[
==Language Idioms==
This version of RCRPG demonstrates the following idioms in
* A simple [[input loop]]
* Subroutines (Functions)
Line 24:
==Code==
{{works with|Rakudo|2018.03}}
<syntaxhighlight lang="raku"
my %rooms;
Line 235:
}
%rooms{$room}.greet;
}</syntaxhighlight >
|