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=-2.6 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, FORGED_GMAIL_RCVD,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS shortcircuit=no autolearn=no 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 EF31B1F45A for ; Wed, 14 Aug 2019 18:07:24 +0000 (UTC) Received: from neon.ruby-lang.org (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id DCFE3120ACF; Thu, 15 Aug 2019 03:07:17 +0900 (JST) Received: from o1678948x4.outbound-mail.sendgrid.net (o1678948x4.outbound-mail.sendgrid.net [167.89.48.4]) by neon.ruby-lang.org (Postfix) with ESMTPS id 50C9E1209D0 for ; Thu, 15 Aug 2019 03:07:15 +0900 (JST) Received: by filter0006p3iad2.sendgrid.net with SMTP id filter0006p3iad2-21054-5D544DD6-D 2019-08-14 18:07:18.114216058 +0000 UTC m=+1639349.615016731 Received: from herokuapp.com (unknown [3.87.212.221]) by ismtpd0025p1iad2.sendgrid.net (SG) with ESMTP id 9xVbpP22Tyue70SfEi4ulg for ; Wed, 14 Aug 2019 18:07:18.064 +0000 (UTC) Date: Wed, 14 Aug 2019 18:07:18 +0000 (UTC) From: akashsjhs@gmail.com Message-ID: References: Mime-Version: 1.0 X-Redmine-MailingListIntegration-Message-Ids: 69901 X-Redmine-Project: ruby-trunk X-Redmine-Issue-Id: 16104 X-Redmine-Issue-Author: akash X-Redmine-Sender: akash 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?14i2Tt+XK8pr6AtJH8MjAIpufeNijlt63CDy9amc1kLb2TIcRK2=2FhSaAamogiR?= =?us-ascii?Q?m9h0lQREyF01FkN5VMsSpYOxj=2FLGjF7MqN5CoUQ?= =?us-ascii?Q?z+O8daKENOfaMtoOcwixI+M2euxwT0VAbnxwL5u?= =?us-ascii?Q?oXVQ+aPxj+=2Fl5jbJhjSQpsDPs7CfcpQNEHc9QLT?= =?us-ascii?Q?m5SZREky9PghYI7b9O76hk8r65zoduBRUZg=3D=3D?= To: ruby-core@ruby-lang.org X-ML-Name: ruby-core X-Mail-Count: 94354 Subject: [ruby-core:94354] [Ruby master Feature#16104] Introduce merge_if and merge_if! 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 #16104 has been reported by akash (Akash Gupta). ---------------------------------------- Feature #16104: Introduce merge_if and merge_if! https://bugs.ruby-lang.org/issues/16104 * Author: akash (Akash Gupta) * Status: Open * Priority: Normal * Assignee: * Target version: ---------------------------------------- The method `merge_if` / `merge_if` will merge the passed hash in parameter only if the block evaluates to true, otherwise not. Similar to `count` method with a block. -- https://bugs.ruby-lang.org/