Herbert Breunung > Perl6-Doc-0.36 > Perl6::Overview::Reduce

Download:
Perl6-Doc-0.36.tar.gz

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Source  

NAME ^

Perl6::Overview::Reduce - Reduce metaoperator

DESCRIPTION ^

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
syntax highlighting: