From: Farrel Lifson Date: 2001-04-15T08:40:08+09:00 Subject: [ruby-talk:13671] Re: Iterator Question Dave Thomas 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