News for hackers. Stuff that matters.
Re:Learning Haskell/Python makes you a worse C# programmer by cygx on Sunday November 25, 2012 @04:13PM (#4829300)
map, grep and join are subs as well as methods. Perl6 is a multi-paradigm language and of course there's more than one way to do it - even when using the same operations.

Instead of chaining methods, one could also use

    # p5 style
    join "\n", grep ?*, map *.description, @list;

    # dataflow style
    @list ==> map *.description ==> grep ?* ==> join "\n";
    join "\n" <== grep ?* <== map *.description <== @list;

There are no comments on this comment yet.