A Foolish Manifesto

fREWdiculous!

Archive for January 20th, 2009

Perl6 vs Ruby: reduce

Ruby:

1
sum = (1..10).reduce {|x,y| x+y}

or maybe

1
sum = (1..10).reduce {:+}

Perl6:

1
my $sum = [+] 1..10;

That has got to be some of the sexiest perl syntax ever!

  • 2 Comments
  • Filed under: Uncategorized
  • Music

    And now on a totally different subject:

    Bands I recommend:

    • Sparkadia
    • Snow Patrol
    • CSS
    • M83
    • Steely Dan
    • The Do
    • Pacifc!
    • The Faint
    • Astronautalis
    • Gonzales
    • Gotye
    • Deastro
    • Exit Clov
    • Belle & Sebastian
    • Mother Mother
    • Jens Lekman
    • LCD Soundsystem
    • The Mountain Goats
    • Goldfrapp
    • Santogold
    • The Republic Tigers
  • 0 Comments
  • Filed under: Uncategorized