Raku Books / Perl 6 at a Glance / Operators / Meta-operators

Cross-operators

The cross meta-operator prefix, X, applies an operation to all the possible combinations of the elements of the operands that are treated in list context. The result of the cross-operation is also a list.

Here is an example that prints the coordinates for all the cells of a chess board:

say 'a'..'h' X~ 1..8;

Course navigation

Reduction   |   Zip meta-operators