From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: poffice@blade.nagaokaut.ac.jp Delivered-To: poffice@blade.nagaokaut.ac.jp Received: from kankan.nagaokaut.ac.jp (kankan.nagaokaut.ac.jp [133.44.2.24]) by blade.nagaokaut.ac.jp (Postfix) with ESMTP id 0197C1960016 for ; Mon, 29 Jun 2015 02:32:26 +0900 (JST) Received: from funfun.nagaokaut.ac.jp (smtp.nagaokaut.ac.jp [133.44.2.201]) by kankan.nagaokaut.ac.jp (Postfix) with ESMTP id 569F0B5D808 for ; Mon, 29 Jun 2015 02:57:24 +0900 (JST) Received: from funfun.nagaokaut.ac.jp (localhost.nagaokaut.ac.jp [127.0.0.1]) by funfun.nagaokaut.ac.jp (Postfix) with ESMTP id 7E89A97A826 for ; Mon, 29 Jun 2015 02:57:24 +0900 (JST) X-Virus-Scanned: amavisd-new at nagaokaut.ac.jp Authentication-Results: funfun.nagaokaut.ac.jp (amavisd-new); dkim=fail (1024-bit key) reason="fail (message has been altered)" header.d=sendgrid.me Received: from funfun.nagaokaut.ac.jp ([127.0.0.1]) by funfun.nagaokaut.ac.jp (funfun.nagaokaut.ac.jp [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id e6Ue9qG_wKMZ for ; Mon, 29 Jun 2015 02:57:24 +0900 (JST) Received: from voscc.nagaokaut.ac.jp (voscc.nagaokaut.ac.jp [133.44.1.100]) by funfun.nagaokaut.ac.jp (Postfix) with ESMTP id 03B1597A820 for ; Mon, 29 Jun 2015 02:57:24 +0900 (JST) Received: from neon.ruby-lang.org (neon.ruby-lang.org [221.186.184.75]) by voscc.nagaokaut.ac.jp (Postfix) with ESMTP id D84A8952439 for ; Mon, 29 Jun 2015 02:57:23 +0900 (JST) Received: from [221.186.184.76] (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id 4C7EE120457; Mon, 29 Jun 2015 02:57:21 +0900 (JST) X-Original-To: ruby-core@ruby-lang.org Delivered-To: ruby-core@ruby-lang.org Received: from o10.shared.sendgrid.net (o10.shared.sendgrid.net [173.193.132.135]) by neon.ruby-lang.org (Postfix) with ESMTPS id EB48A12003B for ; Mon, 29 Jun 2015 02:57:17 +0900 (JST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sendgrid.me; h=from:to:references:subject:mime-version:content-type:content-transfer-encoding:list-id; s=smtpapi; bh=QvSwwsVm2q0s7vLqNDZ7Qg53tpA=; b=TamLl99x0FsqrJB1F+ KzGn6cjNQq7xeM8ZPyqfz9SG9VxTf7TFy2wCvIX0Fm6xtJIt3I3EhXQQaRA+a3XX GgQaTqxc/7vTTyPU5X2EOqyEktYjp3SNwlK9IPqY+qJVBQOlCYk0vriYm7moo+vM mvMIF8L6d5LLA8jyp/lvXmiDo= Received: by filter0421p1mdw1.sendgrid.net with SMTP id filter0421p1mdw1.4510.5590354FE 2015-06-28 17:57:13.531183582 +0000 UTC Received: from herokuapp.com (ec2-23-22-152-205.compute-1.amazonaws.com [23.22.152.205]) by ismtpd-048 (SG) with ESMTP id 14e3b50e2c2.1f33.12013d for ; Sun, 28 Jun 2015 17:57:13 +0000 (UTC) Date: Sun, 28 Jun 2015 17:57:13 +0000 From: 0x0dea+redmine@gmail.com To: ruby-core@ruby-lang.org Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Redmine-MailingListIntegration-Message-Ids: 44342 X-Redmine-Project: ruby-trunk X-Redmine-Issue-Id: 11315 X-Redmine-Issue-Author: 0x0dea X-Redmine-Sender: 0x0dea 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: ync6xU2WACa70kv/Ymy4QrNMhiuLXJG8OTL2vJD1yS6sKtSKvwKxTyiaouOpVTF88928gYyF/O0aAI gPQrFyJjjCME48tujKwX9whNeBrr06lIXgNmF+M/+Z73/B0znMOCwN+BnDx3o0zq7hz3/p4Mq6TQ5V DRhArosOBRmAboNEkOx/IWqCqy3cJjioVC0a X-SendGrid-Contentd-ID: {"test_id":"1435514234"} X-ML-Name: ruby-core X-Mail-Count: 69765 Subject: [ruby-core:69765] [Ruby trunk - Feature #11315] [PATCH] Add Array#^ for parity with other set-like operations. 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: , Errors-To: ruby-core-bounces@ruby-lang.org Sender: "ruby-core" Issue #11315 has been updated by D.E. Akers. Tracker changed from Bug to Feature ---------------------------------------- Feature #11315: [PATCH] Add Array#^ for parity with other set-like operations. https://bugs.ruby-lang.org/issues/11315#change-53141 * Author: D.E. Akers * Status: Open * Priority: Normal * Assignee: ---------------------------------------- ## Proposal It is proposed that `Array` be given an "XOR" method which returns the symmetric difference between itself and another array. ## Rationale `#&` and `#|` need a friend to complete the set of set-like operations on `Array`. ---Files-------------------------------- array_xor.patch (2.69 KB) array_xor_vodka.patch (2.97 KB) array_xor_recycle_seen.patch (3 KB) -- https://bugs.ruby-lang.org/