Reduction operators (pairwise infix)
Any infix operator can be surrounded by brackets to turn it into a "reducing" list operator:
[+] 1, 2, 3 # 1 + 2 + 3 == 6continued...
Perl 6 | Perl 6 today | #51 |
Any infix operator can be surrounded by brackets to turn it into a "reducing" list operator:
[+] 1, 2, 3 # 1 + 2 + 3 == 6continued...
Copyright © 2009 http://www.pmichaud.com/2009/pres/ |