Course of Raku / Addendum 🆕 / Flow and functions

Subroutines and functional style

Writing your own subroutines and passing them around: recursion, closures, multiple dispatch, and pipelines built from map, grep, and reduction.

Exercises

This section contains 6 exercises. Examine all the topics of this section before doing the coding practice.

  1. Digit sum by recursion
  2. Compose two functions
  3. A running accumulator
  4. Sum of even squares
  5. Describe by type
  6. Sort by two keys

Course navigation

Solution: Sum until over a hundred   |   Digit sum by recursion