Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • by pstuifzand (8790) on 2010.08.27 6:20 (#72354)
    It's nice to see that Perl6 will be on par with Haskell for these kinds of examples. This Haskell example is from Rosseta code page (but rewritten for similarity).

    pascal = iterate (\row -> zipWith (+) ([0]++row) (row++[0])) [1]

    The essential complexity of this example is the same. Only it contains more words than operators.