Course of Raku / Functional, concurrent, reactive, and web programming

Functional programming

A functional style in Raku — recursion, higher-order functions, closures, reductions, feeds, iterators, and laziness.

  • Recursion — 4 exercises
    • A recursive subroutine — 1 quiz
    • The base case — 1 quiz
    • Recursion with multi subs — 1 quiz
  • Higher-order functions — 3 exercises
    • Passing subroutines — 1 quiz
    • Returning subroutines — 1 quiz
  • Lambdas and closures — 3 exercises
    • Lambdas — 1 quiz
    • Closures — 1 quiz
  • Reduction — 5 exercises
    • The reduction metaoperator — 1 quiz
    • The reduce routine — 1 quiz
  • Data feeds — 3 exercises
    • The feed operator — 1 quiz
    • Chaining feeds — 1 quiz
    • The backward feed — 1 quiz
  • Generators — 3 exercises
    • gather and take — 1 quiz
    • Lazy gather
  • Iterators — 1 exercise
    • The iterator protocol — 1 quiz
    • Writing an iterator
  • Lazy and infinite sequences — 3 exercises
    • The sequence operator — 1 quiz
    • Infinite sequences — 1 quiz

The Complete Course of the Raku Programming Language

About the course · Raku.org · Raku Playground · GitHub

Free and open source · Supported by The Perl & Raku Foundation

© 2021–2026 · Written by Andrew Shitov