Slash Boxes
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

use Perl Log In

Log In

[ Create a new account ]

pstuifzand (8790)

  (email not shown publicly)
+ -

  Comment: Synthetic code (Score 1) on 2010.08.27 6:20

by pstuifzand on 2010.08.27 6:20 (#72354)
Attached to: Idiomatic Perl 6
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.

Read More 9 comments
Comments: 9