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