Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 9CD31200C73 for ; Wed, 10 May 2017 16:49:24 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 9B619160BC6; Wed, 10 May 2017 14:49:24 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id DEF75160B9C for ; Wed, 10 May 2017 16:49:23 +0200 (CEST) Received: (qmail 93342 invoked by uid 500); 10 May 2017 14:49:21 -0000 Mailing-List: contact dev-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Developers List" Delivered-To: mailing list dev@commons.apache.org Received: (qmail 93322 invoked by uid 99); 10 May 2017 14:49:20 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 May 2017 14:49:20 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 98CD4C322D for ; Wed, 10 May 2017 14:49:20 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.22 X-Spam-Level: X-Spam-Status: No, score=-0.22 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, KAM_NUMSUBJECT=0.5, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=scarlet.be Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id xtR3UiU5FGTs for ; Wed, 10 May 2017 14:49:19 +0000 (UTC) Received: from sif.is.scarlet.be (sif.is.scarlet.be [193.74.71.28]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id B958C5F36C for ; Wed, 10 May 2017 14:49:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=scarlet.be; s=scarlet; t=1494427758; bh=hNi8vA/XJJjysdnpTOacExiQkAzrVA/QUyOqGwONGg0=; h=MIME-Version:Content-Type:Content-Transfer-Encoding:Date:From:To: Subject:In-Reply-To:References:Message-ID; b=Y++cIV5Bs3EIr2G+8t4dRqU4YyaL0L4ertFThH6kZryueft/4b91IldM3/BuxiPv0 HQX6zucm9Q4nUuroU0EjVgk3EyuvoGXuENt+06KFrpB9+RFDeUVxcjznI6F1u6EAC3 k2NYVKRmZ5Jsh6bQ7AwhXpXYmH2FC0ptqEoyuAek= Received: from webmail.scarlet.be (gresham.is.scarlet.be [193.74.71.215]) by sif.is.scarlet.be (8.14.9/8.14.9) with ESMTP id v4AEnHJ7017573 for ; Wed, 10 May 2017 16:49:18 +0200 X-Scarlet: d=1494427758 c=193.74.71.215 Received: from astropc12.ulb.ac.be ([164.15.138.26]) via pno-astro-26.ulb.ac.be ([164.15.138.26]) by webmail.scarlet.be with HTTP (HTTP/1.1 POST); Wed, 10 May 2017 16:49:17 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 10 May 2017 16:49:17 +0200 From: Gilles To: Subject: Re: [Numbers] NUMBERS-33 In-Reply-To: References: <238bcf7a2899ea47bead71bbf22b2aee@scarlet.be> <046ab71594507cac3eb5495b23a8b437@scarlet.be> <20170509132921.GB22246@biggiebuntu> <20170509171312.GG22246@biggiebuntu> Message-ID: <3b1821005b7f0fcb554db312724cd196@scarlet.be> X-Sender: gilles@harfang.homelinux.org User-Agent: Scarlet Webmail X-DCC-scarlet.be-Metrics: sif; whitelist X-Virus-Scanned: clamav-milter 0.98.1-exp at sif X-Virus-Status: Clean archived-at: Wed, 10 May 2017 14:49:24 -0000 Hi. On Tue, 9 May 2017 12:59:40 -0400, Raymond DeCampo wrote: >> If I make the method static and rename it to "gamma", then I can do >> the > much >> simpler: >> Stream d = numbers.parallelStream().map(Gamma::gamma); > > It seems to me like the above, suggested by Stian earlier if I am not > mistaken, is the best option of the ones you have discussed, once you > agree > on a name for the static method. > > I don't think there is a need to explicitly implement > DoubleUnaryOperator > as a method reference can always be implicitly converter by the > compiler. Is commit ef4ab32365ea7f5a0debb9f48734839b5ed00a86 OK (as far as usage with Java 8 is concerned)? If we decide to have "Numbers" target Java 8, we'll define an additional (non-static) "apply(double)" method that will call the static one. Regards, Gilles --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org For additional commands, e-mail: dev-help@commons.apache.org