News for hackers. Stuff that matters.
Re:In Praise of Perl 5 by reality_czech on Monday March 03, 2014 @06:02AM (#7333089)
Flattening an array is trivial in Ruby:

  [[1, 2, 3], 4, 5].flatten()
I don't see how it could possibly be made easier or more intuitive than a single function call. Ruby also makes it clear what is going on.
Re:In Praise of Perl 5 by __david__ on Tuesday March 04, 2014 @12:34AM (#7338675)
That flattens everything. In Perl it's trivial to flatten just the parts you need to and leave other nestings intact.