From: Trans Date: 2005-12-07T22:37:35+09:00 Subject: Re: increasing counter whithin loop? Maybe I missed something. last = nil %w( a b c d e ).select { |e| r = last != 'b' ; last = e ; r } T.