Perl 6 Cool Perl 6 #35

Hyperoperators (vector processing)

Perl 5:

# pairwise add elements of @a and @b to produce @c
for ($i = 0; $i < @a; $i++) {
    $c[$i] = $a[$i] + $b[$i];
}
continued...
Copyright © 2010
http://www.pmichaud.com/2010/pres/