Phrogz wrote: > Hrm, I assumed that using #each_with_index would be speedier, since > there would be no Ruby call to the #[] method of the array for each > iteration. Instead, it's much slower: Hrm, that is odd. I assure you it was purely by accident that I picked the faster implementation. Maybe it has something to do with each_with_index being implemented by Enumerable, vice Array? I dunno why.... should just delegate to each, and keep a counter around. ? Devin