Course of Raku / Essentials / Creating and calling functions

Quiz — Creating a function

1

Complete the program to create a function.

$x { sub f(␣␣) ␣
.     say $x;
}

2

Choose the right declarator.

sub (: function, func, fn, sub, subroutine :) f() {
.     # . . .
. }

Course navigation

Associative data types / Interpolating hashes   |   Function names