D
David Garamond
What is the shortest, most straightforward way (without temporary
variables, etc)?
My best route is now "1234".split(//).collect{|c|c[0]} but I'm sure
there is a much better way. Also it's a bit slow.
variables, etc)?
My best route is now "1234".split(//).collect{|c|c[0]} but I'm sure
there is a much better way. Also it's a bit slow.