From: Yukihiro Matsumoto Date: 2010-03-02T17:49:22+09:00 Subject: [ruby-core:28403] Re: [Bug #2495] Matrix: Vector#each2 should check its argument Hi, In message "Re: [ruby-core:28401] Re: [Bug #2495] Matrix: Vector#each2 should check its argument" on Tue, 2 Mar 2010 17:29:46 +0900, Yukihiro Matsumoto writes: ||I'd like to point out an alternate implementation can use #each instead of #[], and at least avoid the non-sensical results on integers. Example: | |Accepted, but I prefer each_with_index though. I tried, but test failed, because Vector does not know how to each. I am not sure if it's sufficient to make Vector enumerable. matz.