Index

This file was automatically generated from http://svn.pugscode.org/pugs/docs/Perl6/Overview/Reduce.pod on Wed Jun 6 22:16:47 2007 GMT, revision 16639.

Perl6::Overview::Reduce


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