Ugly join implementation

Jul 25
2008
arr = (1..10).to_a
 
 str = arr * ', '
 str = arr.join(', ')

Am I going to use the perlish coding style? Not really.

Comments are closed.

Calendar

July 2008
M T W T F S S
« Jun   Aug »
 123456
78910111213
14151617181920
21222324252627
28293031  

Tags