Perl 6 Parallelism in Perl 6 #14

Hyperoperators

Perl 5:

# pairwise add elements of @a and @b to produce @c
for ($i = 0; $i < @a; $i++) {
    $c[$i] = $a[$i] + $b[$i];
}

Perl 6 uses » and « to modify operators to become "hyper":

# pairwise add elements of @a and @b to produce @c
@c = @a »+« @b;
continued...
Copyright © 2013
http://www.pmichaud.com/2013/pres/