Course of Raku / Essentials / Creating and calling functions

Exercises: Creating and calling functions

This section contains 6 exercises.

  1. Function to compute xʸ
  2. Odd or even
  3. Recursive factorial
  4. Interval function
  5. Function table
  6. The value of e

Refresh your knowledge

Refer to the contents of this section to find the answers if needed.

  • Creating and calling functions
    • Function names
    • Function parameters
    • Returning the result
    • Positional parameters
    • Named parameters
    • Default values

Course navigation

← Associative data types / Interpolating hashes   |   More about functions →