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.5 required=3.0 tests=AWL,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 E73531F462 for ; Tue, 28 May 2019 09:33:40 +0000 (UTC) Received: from neon.ruby-lang.org (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id DD0C11208C0; Tue, 28 May 2019 18:33:34 +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 0016C1209F2 for ; Tue, 28 May 2019 18:33:31 +0900 (JST) Received: by filter0080p3mdw1.sendgrid.net with SMTP id filter0080p3mdw1-408-5CED006D-4 2019-05-28 09:33:33.145153105 +0000 UTC m=+404965.064540235 Received: from herokuapp.com (unknown [174.129.184.217]) by ismtpd0049p1mdw1.sendgrid.net (SG) with ESMTP id SBlQDJk0TkOxzrZaBoODZA for ; Tue, 28 May 2019 09:33:33.080 +0000 (UTC) Date: Tue, 28 May 2019 09:33:33 +0000 (UTC) From: matthew@kerwin.net.au Message-ID: References: Mime-Version: 1.0 X-Redmine-MailingListIntegration-Message-Ids: 68356 X-Redmine-Project: ruby-trunk X-Redmine-Issue-Id: 15799 X-Redmine-Issue-Author: nobu X-Redmine-Sender: phluid61 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?dc6bl8=2FRfjZl6IUFmz6hrXGqzg+6U4v9dH0u7=2FcQTE=2F=2FcJwMWJHxS6L0dk5P55?= =?us-ascii?Q?JRp83gnDnsE2LGlARQbqX0xGYiHG3pve=2FxwyTGV?= =?us-ascii?Q?=2FsTI1kzPHFNySqII7GJ66SSa54YtLvgN4vsk3tG?= =?us-ascii?Q?LY=2FUNnsrxGmINPMGEHdzSzeGwaVkoJ4ezDQsybF?= =?us-ascii?Q?pgVyq3oGIi3ZUtTwpCQN=2FNFxBGOQLC+cDWg=3D=3D?= To: ruby-core@ruby-lang.org X-ML-Name: ruby-core X-Mail-Count: 92873 Subject: [ruby-core:92873] [Ruby trunk Feature#15799] pipeline operator 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 #15799 has been updated by phluid61 (Matthew Kerwin). `a|:b` means `a | :b` and `a=:b` means `a = :b` ---------------------------------------- Feature #15799: pipeline operator https://bugs.ruby-lang.org/issues/15799#change-78252 * Author: nobu (Nobuyoshi Nakada) * Status: Open * Priority: Normal * Assignee: * Target version: ---------------------------------------- Implemented the pipeline operator `|>`, a topic of "ruby committers vs the world" in RubyKaigi 2019. Also a casual idea of rightward assignment. ```ruby 1.. |> take 10 |> map {|x| x*2} |> (x) p x #=> [2, 4, 6, 8, 10, 12, 14, 16, 18, 20] ``` https://github.com/nobu/ruby/tree/feature/pipeline -- https://bugs.ruby-lang.org/