Ugly join implementation

Posted by root Sat, 26 Jul 2008 04:11:00 GMT

 arr = (1..10).to_a

 str = arr * ', '
 str = arr.join(', ')
Am I going to use the perlish coding style? Not really.

Posted in  | Tags  | no comments