From: Trans Date: 2007-11-10T10:14:30+09:00 Subject: equivalent injecting implementations? Are these strictly equivalent? I get the feeling no, but I haven't been able to demonstrate it yet. def injecting(s) inject(s) do |k, i| yield(k, i); k end end def injecting(res, &block) ([res]*length).zip(to_a).each(&block) res end Thanks, T.