Perl6::Overview::Reduce - Reduce metaoperator
Uses of the reduction meta-operator:
[+] # sum(...) [*] # product [*] 1..$x # factorial [~] # join('', ...) [+^] # numeric parity [~^] # string parity [?^] # boolean parity [<] # monotony [==] # equality [//] # first defined element [||] # first true element [=>] # linked list construction [&] # all(...) [|] # any(...) [^] # one(...) [Y] # zip(...) [,] # noop, returns input list [;] # [[;] 1,2,3] === [1;2;3] == [[1],[2],[3]] [>>op<<] # perform op on each column
To install Perl6::Doc, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Perl6::Doc
CPAN shell
perl -MCPAN -e shell install Perl6::Doc
For more information on module installation, please visit the detailed CPAN module installation guide.