Return-Path: X-Original-To: apmail-groovy-dev-archive@minotaur.apache.org Delivered-To: apmail-groovy-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4CB86181AA for ; Tue, 9 Jun 2015 15:14:05 +0000 (UTC) Received: (qmail 67517 invoked by uid 500); 9 Jun 2015 15:14:00 -0000 Delivered-To: apmail-groovy-dev-archive@groovy.apache.org Received: (qmail 67476 invoked by uid 500); 9 Jun 2015 15:14:00 -0000 Mailing-List: contact dev-help@groovy.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@groovy.incubator.apache.org Delivered-To: mailing list dev@groovy.incubator.apache.org Received: (qmail 67465 invoked by uid 99); 9 Jun 2015 15:13:59 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Jun 2015 15:13:59 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 8A859CCC32 for ; Tue, 9 Jun 2015 15:13:59 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 4.08 X-Spam-Level: **** X-Spam-Status: No, score=4.08 tagged_above=-999 required=6.31 tests=[HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=3, KAM_COUK=1.1, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id rv0cFbmBeMuC for ; Tue, 9 Jun 2015 15:13:58 +0000 (UTC) Received: from mail-wi0-f176.google.com (mail-wi0-f176.google.com [209.85.212.176]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id 961DA21544 for ; Tue, 9 Jun 2015 15:13:57 +0000 (UTC) Received: by wiga1 with SMTP id a1so20874937wig.0 for ; Tue, 09 Jun 2015 08:13:12 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=mime-version:from:date:message-id:subject:to:content-type; bh=2rFKZGA14ki/a82Qev8LAvDDtjKx1YYXVz4/pifArAQ=; b=PC70v4mNodX6KJfB4OTq4mZBuluXPdABzmg1ARfe4yuhpgQXOe6TNVb1J4xcOeU6zP fPSak3QugF5c6gG3xC0fAsdMrdPri7AkYnxKW+cZNNNMwtYKpmfC2uRw8oz/fCMyEfAU +Y7D7s3nSnAHHDNvvUe7oN/E9smB28COQH+WoQzK6ufy166n3nOkMEeshfo2/2z/T1NM zzFvEN9nQSlJv9I8c03T5bc/jeHrEG/qXE65/I9fGTQPFjQZMtgVoX4tJG3RpcJ5xAwU lUrJR28Vc3wSTdOrIWamzKXUFz436ZbN/s97QTXbwf/CGXnV1c+qeKA0tklWwOn8MgK3 TFFA== X-Received: by 10.194.23.197 with SMTP id o5mr43396601wjf.75.1433862792304; Tue, 09 Jun 2015 08:13:12 -0700 (PDT) MIME-Version: 1.0 From: Peter Ledbrook Date: Tue, 09 Jun 2015 15:13:01 +0000 Message-ID: Subject: intersect() returns duplicate elements To: "dev@groovy.incubator.apache.org" Content-Type: multipart/alternative; boundary=047d7b5d986b645d690518173265 --047d7b5d986b645d690518173265 Content-Type: text/plain; charset=UTF-8 Hi, While implementing and testing an intersect() method for CharSequence, I noticed that Iterable.intersect() may return duplicate elements. Is that intentional? It's not the behaviour I would expect. Thanks, Peter --047d7b5d986b645d690518173265 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi,

While implementing and testing an i= ntersect() method for CharSequence, I noticed that Iterable.intersect() may= return duplicate elements. Is that intentional? It's not the behaviour= I would expect.

Thanks,

= Peter
--047d7b5d986b645d690518173265--