From: James Edward Gray II Date: 2006-02-13T02:07:31+09:00 Subject: Re: [QUIZ] FasterGenerator (#66) On Feb 12, 2006, at 3:23 AM, Christoffer Lern� wrote: >> Benchmark.bmbm do |x| >> x.report("Current Generator") do >> generator = CurrentGenerator.new(enum) >> tests.times { generator.next until generator.end? } >> end > > I have small problem with this. Won't this mean the loop will only > run 1 time? Yes, you are right. That was silly of me. I like your fix. Adding rewind() fixes things up. Thank you. James Edward Gray II