From: qlli.illb@... Date: 2014-07-19T01:57:18+00:00 Subject: [ruby-core:63847] [ruby-trunk - Feature #10068] [Open] [PATCH] Implement monadic operator for Vector Issue #10068 has been reported by gogo tanaka. ---------------------------------------- Feature #10068: [PATCH] Implement monadic operator for Vector https://bugs.ruby-lang.org/issues/10068 * Author: gogo tanaka * Status: Open * Priority: Normal * Assignee: * Category: * Target version: ---------------------------------------- Before ``` v = Vector[1, 2, 3] + v => NoMethodError: undefined method `+@' for Vector[1, 2, 3]:Vector - v => NoMethodError: undefined method `-@' for Vector[1, 2, 3]:Vector ``` After ``` v = Vector[1, 2, 3] + v => Vector[1, 2, 3] - v => Vector[-1, -2, -3] ``` ---Files-------------------------------- implement_uplus_for_vector.patch (842 Bytes) implement_negate_for_vector.patch (1.25 KB) -- https://bugs.ruby-lang.org/