Course of Raku / Advanced / Operators

Meta-operators

A meta-operator is not an operator on its own — it is a wrapper that turns an ordinary operator into a new one. With a meta-operator you can, for example, apply the same operator across a whole list of values at once, instead of writing it out between every pair of them.

Raku has several meta-operators. This section covers the most useful families: reduction, which collapses a list into a single value; zip, which combines two lists element by element; and — on the last page — the cross, hyper, and negated operators.

Topics in this section

Practice

Complete the quizzes that cover the contents of this section.

Exercises

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

  1. Average of an array
  2. Every factorial at once
  3. Build a URL

Course navigation

Quiz — Precedence   |   Reduction metaoperators