From: ruby-core@... Date: 2014-11-21T14:19:10+00:00 Subject: [ruby-core:66391] [ruby-trunk - Feature #10444] [Rejected] [PATCH 3/3] Vector#[] returns new vector if argument is range. Issue #10444 has been updated by Marc-Andre Lafortune. Status changed from Feedback to Rejected gogo tanaka wrote: > But I think there is no reason `Vector[1,2,3][0..1]` returns not `Vector` but `Array`. I agree completely, and don't I think it was intended. The doc states "Returns element number +i+" too. ---------------------------------------- Feature #10444: [PATCH 3/3] Vector#[] returns new vector if argument is range. https://bugs.ruby-lang.org/issues/10444#change-50031 * Author: gogo tanaka * Status: Rejected * Priority: Normal * Assignee: Marc-Andre Lafortune * Category: lib * Target version: current: 2.2.0 ---------------------------------------- Hi, it's incompatible change little bit. Before ``` Vector[1,2,3][0..1] => [1, 2] ``` After ``` Vector[1,2,3][0..1] => Vector[1, 2] ``` I'm not in a hurry. Take your time. ---Files-------------------------------- implement_matrix.rb.patch (1.3 KB) add_test.patch (820 Bytes) update_NEWS.patch (736 Bytes) -- https://bugs.ruby-lang.org/