Re: Meta- and Hyperoperators and Anonymous Subroutines

2009-03-02 Thread Thomas Chust
2009/3/2 Moritz Lenz : > Thomas Chust wrote: >> [...] >> Therefore I think that it would be a nice addition for Perl 6 if the >> X...X, <<...>> and similar operators could be applied to anonymous >> subroutines in addition to other operators. If such a synta

Meta- and Hyperoperators and Anonymous Subroutines

2009-03-02 Thread Thomas Chust
Hello, looking into Perl 6 syntax I noticed that there are meta- and hyperoperators to perform among others the classical functional map and fold operations. However, if I understood this correctly, you can only use these constructs to lift scalar *operators* to the domain of arrays. Coming from