September 2017
Beginner
402 pages
9h 52m
English
The zip meta-operator Zop 'zips' its list operands and applies the op operation to corresponding elements of the operands.
Let's try the zip meta-operator on the same data as we did with the cross meta-operator:
my @x = (1, 2, 3);my @y = (4, 5, 6);say @x Z+ @y;say @x Z~ @y;
The program prints two lists of three elements each:
(5 7 9)(14 25 36)
Read now
Unlock full access