From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS4713 221.184.0.0/13 X-Spam-Status: No, score=-3.9 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from neon.ruby-lang.org (neon.ruby-lang.org [221.186.184.75]) by dcvr.yhbt.net (Postfix) with ESMTP id 4BCD21F461 for ; Thu, 22 Aug 2019 20:26:35 +0000 (UTC) Received: from neon.ruby-lang.org (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id E7801120AA4; Fri, 23 Aug 2019 05:26:26 +0900 (JST) Received: from o1678916x28.outbound-mail.sendgrid.net (o1678916x28.outbound-mail.sendgrid.net [167.89.16.28]) by neon.ruby-lang.org (Postfix) with ESMTPS id 471BC1209A5 for ; Fri, 23 Aug 2019 05:26:25 +0900 (JST) Received: by filter0012p3iad2.sendgrid.net with SMTP id filter0012p3iad2-3978-5D5EFA74-1 2019-08-22 20:26:28.065272877 +0000 UTC m=+589376.082122103 Received: from herokuapp.com (unknown [34.224.37.22]) by ismtpd0050p1iad1.sendgrid.net (SG) with ESMTP id nEJ_5cuXSrePJvumrjwqng for ; Thu, 22 Aug 2019 20:26:27.979 +0000 (UTC) Date: Thu, 22 Aug 2019 20:26:28 +0000 (UTC) From: ngomez@atlassian.com Message-ID: References: Mime-Version: 1.0 X-Redmine-MailingListIntegration-Message-Ids: 70035 X-Redmine-Project: common-ruby X-Redmine-Issue-Id: 16118 X-Redmine-Issue-Author: ngomez X-Redmine-Sender: ngomez X-Mailer: Redmine X-Redmine-Host: bugs.ruby-lang.org X-Redmine-Site: Ruby Issue Tracking System X-Auto-Response-Suppress: All Auto-Submitted: auto-generated X-SG-EID: =?us-ascii?Q?tHlNtoNfV=2FrYFAM1vlQ8tO7xpxdrUUSOaHTnVqClF2skR=2F2yWsTtyMA39aUHJj?= =?us-ascii?Q?yUrCMDM56uXekIcabSjXYNEM70sSgBXTEzFRIVx?= =?us-ascii?Q?eY2waRrRJvYw8qozUm+Tq8GX1azG44UtPoVFwb6?= =?us-ascii?Q?7llwmlnbvls81Ht408Xs740WFcR4yl6duI2twrh?= =?us-ascii?Q?rAZv3x2rQC5P2imSdCYrwHrWQVRVVFmk7mg=3D=3D?= To: ruby-core@ruby-lang.org X-ML-Name: ruby-core X-Mail-Count: 94486 Subject: [ruby-core:94486] [CommonRuby Feature#16118] Array .distance allow custom comparison X-BeenThere: ruby-core@ruby-lang.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Ruby developers List-Id: Ruby developers List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ruby-core-bounces@ruby-lang.org Sender: "ruby-core" Issue #16118 has been reported by ngomez (Nancy Gomez). ---------------------------------------- Feature #16118: Array .distance allow custom comparison https://bugs.ruby-lang.org/issues/16118 * Author: ngomez (Nancy Gomez) * Status: Open * Priority: Normal * Assignee: * Target version: ---------------------------------------- Hello! I wanted to know if there's any plan to implement the ability to define comparison between individual items in arrays. Here is where I originally asked the question on Stack Overflow: https://stackoverflow.com/questions/57316775/is-there-any-way-to-specify-how-to-compare-of-array-of-objects-for-difference-f But specifically, I noticed nearly all the existing Array functions allow us to define ways for comparison, such as #uniq but #difference does not :( This is quite unfortunate but I'm hoping it's just because this function was introduced in 2.6.0, and hopefully this feature can be implemented? Thanks for any and all info :) -- https://bugs.ruby-lang.org/