From: lito.nicolai@... Date: 2015-02-25T04:44:02+00:00 Subject: [ruby-core:68293] [Ruby trunk - Bug #10903] [Open] [PATCH] Matrix#zip returns a matrix Issue #10903 has been reported by Lito Nicolai. ---------------------------------------- Bug #10903: [PATCH] Matrix#zip returns a matrix https://bugs.ruby-lang.org/issues/10903 * Author: Lito Nicolai * Status: Open * Priority: Normal * Assignee: * ruby -v: 2.3.0 * Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN ---------------------------------------- Currently: > x = Matrix.I 2 > x.zip x => [[1, 1], [0, 0], [0, 0], [1, 1]] # It's an array! With the patch: > x.zip x => Matrix[[1, 1], [0, 0], [0, 0], [1, 1]] And also: > x.zip x, x # and so on => Matrix[[1, 1, 1], [0, 0, 0], [0, 0, 0], [1, 1, 1]] ---Files-------------------------------- matrix_zip.patch (1.42 KB) -- https://bugs.ruby-lang.org/