Tips for golfing in Raku What general tips do you have for golfing in Raku? I'm looking for ideas that can be applied to code golf problems in general that are at least somewhat specific to Raku (e.g. "remove comments" is not an answer). Please post one tip per answer.
Avoid sub literals. In many cases, you can simply use {} for code blocks. For example, don't write the following code.

sub ($a){$a*2}


Instead, use blocks syntax. This also lets you to use $_, @_, and %_ placeholder variables, if you only need a single variable. If you need more, you can use $^a, $^b variables, and so on.

{$_*2}


Also, in certain rare cases, it's possible to use whatever code (especially when you have simple expressions). The * replaces the placeholder argument.

* *2