From: James Edward Gray II Date: 2006-08-12T08:26:57+09:00 Subject: Re: Dire need for inject_with_index Hope this helps: >> require "enumerator" => true >> module Enumerable >> def inject_with_index(*args, &block) >> enum_for(:each_with_index).inject(*args, &block) >> end >> end => nil >> ("A".."D").inject_with_index("") do |str, (let, i)| ?> i % 2 == 0 ? str += let : str >> end => "AC" James Edward Gray II