Dave Thomas <Dave / pragmaticprogrammer.com> wrote:

> You could use each_with_index:
I was not aware of the each_with_index call, it'll no doubt help a lot in the future.

> Or, you could use join, which is probably a better way of expressing
> it. 

>    puts array.join("\n\t")
An even more elegant solution!

Thanks,
Farrel
-- 
|DNA Research Group		mailto:flifson / cs.uct.ac.za
|Dept. of Computer Science	http://www.cs.uct.ac.za/~flifson
|University of Cape Town	+27-21-650-3799