XP is just a number | |
PerlMonks |
Re^2: Yet Another Rosetta Code Problem (Perl, Ruby, Python, Haskell, ...)by Anonymous Monk |
on Sep 11, 2007 at 00:54 UTC ( [id://638193]=note: print w/replies, xml ) | Need Help?? |
Ruby solution
.flatten is needed else you get as result. But this is quite an ugly solution anyway... in fact, perl looks almost as readable in this example ;) not sure how to solve this any easier though, hmm i wonder if .each could be used and then another grouping way... I really dont like the regex magic of the ruby solution, cant you guys think of another solution :-)
In Section
Meditations
|
|