From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by sympa.inria.fr (Postfix) with ESMTPS id 23A997F7AF for ; Sun, 11 Oct 2015 03:09:59 +0200 (CEST) IronPort-PHdr: 9a23:EQRZvxF68/308njbIt8Cv51GYnF86YWxBRYc798ds5kLTJ74psWwAkXT6L1XgUPTWs2DsrQf27aQ7PGrAzReqb+681k8M7V0HycfjssXmwFySOWkMmbcaMDQUiohAc5ZX0Vk9XzoeWJcGcL5ekGA6ibqtW1aJBzzOEJPK/jvHcaK1oLsh7z0pMyYOV0WzBOGIppMbzyO5T3LsccXhYYwYo0Q8TDu5kVyRuJN2GlzLkiSlRuvru25/Zpk7jgC86l5r50IeezAcq85Vb1VCig9eyBwvZWz9Er1dhaU/nYXTkkRlxNJBUCFsEC7Dd/NtX7ct+5mkAOXNs77V/hgXzWm9OFhRRTrhT0vPT8+6XzejNA2kaRa5RKsphByx4TZeo7TOPcoLY3HetZPYGNbQsdXHwBMJ464a4xHW+8IJ/pZqYXwolYKqRyWCgylBeepwThN0CyllZYm2vgsRFmVlDcrGMgD5TGJ9dg= Authentication-Results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=martindemello@gmail.com; spf=Pass smtp.mailfrom=martindemello@gmail.com; spf=None smtp.helo=postmaster@mail-vk0-f54.google.com Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of martindemello@gmail.com) identity=pra; client-ip=209.85.213.54; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="martindemello@gmail.com"; x-sender="martindemello@gmail.com"; x-conformance=sidf_compatible Received-SPF: Pass (mail2-smtp-roc.national.inria.fr: domain of martindemello@gmail.com designates 209.85.213.54 as permitted sender) identity=mailfrom; client-ip=209.85.213.54; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="martindemello@gmail.com"; x-sender="martindemello@gmail.com"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of postmaster@mail-vk0-f54.google.com) identity=helo; client-ip=209.85.213.54; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="martindemello@gmail.com"; x-sender="postmaster@mail-vk0-f54.google.com"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0AuBAB7thlWlDbVVdFeg0U1bgaqZoFOK4R6jBiBWiOCcIIKfwKBFgc6EgEBAQEBAQEBEAEBAQEHCwsJHzCCH4IIAQEDARIRBBkBGxILAQMBCwYFBAcaHQICIgERAQUBChIGExIQh3YBAwoIDaFxgTE+MYtJgWyCeYh1ChknAwpWhEsBAQEBAQEBAwEBAQEBAQEBFAEFDoZlhH6FCQQHgmmBRQWGAwyHdIgQhRmIAYIgmBcSI4EXERcFgjojgXseMwGHaQEBAQ X-IPAS-Result: A0AuBAB7thlWlDbVVdFeg0U1bgaqZoFOK4R6jBiBWiOCcIIKfwKBFgc6EgEBAQEBAQEBEAEBAQEHCwsJHzCCH4IIAQEDARIRBBkBGxILAQMBCwYFBAcaHQICIgERAQUBChIGExIQh3YBAwoIDaFxgTE+MYtJgWyCeYh1ChknAwpWhEsBAQEBAQEBAwEBAQEBAQEBFAEFDoZlhH6FCQQHgmmBRQWGAwyHdIgQhRmIAYIgmBcSI4EXERcFgjojgXseMwGHaQEBAQ X-IronPort-AV: E=Sophos;i="5.17,665,1437429600"; d="scan'208";a="182125172" Received: from mail-vk0-f54.google.com ([209.85.213.54]) by mail2-smtp-roc.national.inria.fr with ESMTP/TLS/AES128-GCM-SHA256; 11 Oct 2015 03:09:58 +0200 Received: by vkha6 with SMTP id a6so13486488vkh.2 for ; Sat, 10 Oct 2015 18:09:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=VahECEkC15R+6RqSBDaF5wyLSikflWw01+ozF1ONPbo=; b=N4Bf+RtkRp10kqhwr4in/npSm0FXMqqlGJR120vTrj1DVr6d22g0b6WwNhPCFZezXe WyVFcHoLgVFt/BdXX+nRGxYa9P1e2dMRx+kmyGOxo23GU68q8ZadO9425edLbpHfOGCj S7PwZr2Zon6JnGr0SqY/OkjQKjwOmqUhs17YkbUntaN+ItjFfuug54soBVjjkXYnR3H0 772/KLrfMZar+TydyLoiN5ym8L1o62n/jsRBZk+oNDXZD/ZMKa4dDI2P1wn5V2O7joUc KT51zVIljYTPcsJ3FmnAemdwWHtJDXkTdI0TwoMxVnmAFiUA3pVR0LZV+wemgEHZTh3M 2jDw== MIME-Version: 1.0 X-Received: by 10.31.107.26 with SMTP id g26mr14010573vkc.6.1444525796853; Sat, 10 Oct 2015 18:09:56 -0700 (PDT) Received: by 10.103.51.142 with HTTP; Sat, 10 Oct 2015 18:09:56 -0700 (PDT) In-Reply-To: References: Date: Sat, 10 Oct 2015 18:09:56 -0700 Message-ID: From: Martin DeMello To: Nils Becker Cc: "caml-list@inria.fr" Content-Type: multipart/alternative; boundary=001a1147830cfd8d390521c9de63 Subject: Re: [Caml-list] pipe input short syntax idea --001a1147830cfd8d390521c9de63 Content-Type: text/plain; charset=UTF-8 F# defines composition operators >> and <<: http://theburningmonk.com/2011/09/fsharp-pipe-forward-and-pipe-backward/ martin On Sat, Oct 10, 2015 at 6:52 AM, Nils Becker < nils.becker@bioquant.uni-heidelberg.de> wrote: > hi, > > just an idea for a short notation which might be appealing: > > (|> f |> g |> ... ) as abbreviation for (fun x -> x |> f |> g |> ...) > > (|> f) would be just f. > > in other words a it's function composition using |> . it looks intuitive > to me. but of course it could be a bad idea for a lot of reasons. > > n, > > > -- > Caml-list mailing list. Subscription management and archives: > https://sympa.inria.fr/sympa/arc/caml-list > Beginner's list: http://groups.yahoo.com/group/ocaml_beginners > Bug reports: http://caml.inria.fr/bin/caml-bugs > --001a1147830cfd8d390521c9de63 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
F# defines composition operators >> and <<:

martin

On Sat, Oct 10, = 2015 at 6:52 AM, Nils Becker <nils.becker@bioquant.un= i-heidelberg.de> wrote:
hi,=

just an idea for a short notation which might be appealing:

(|> f |> g |> ... ) as abbreviation for (fun x -> x |> f |&g= t; g |> ...)

(|> f) would be just f.

in other words a it's function composition using |> . it looks intui= tive
to me. but of course it could be a bad idea for a lot of reasons.

n,


--
Caml-list mailing list.=C2=A0 Subscription management and archives:
https://sympa.inria.fr/sympa/arc/caml-list
Beginner's list: http://groups.yahoo.com/group/ocam= l_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs

--001a1147830cfd8d390521c9de63--