From: DS <ds.caml@sol42.com>
To: caml-list@inria.fr
Subject: Re: [Caml-list] Infix function composition operator
Date: Wed, 10 Nov 2010 11:06:54 +0100 [thread overview]
Message-ID: <ABB215C3-96A8-4132-94BD-A81C2CE3DB87@sol42.com> (raw)
In-Reply-To: <AANLkTin2Zwrd7Dn_5MLMBqy4X4ui41g8zg18Y5DkGW-r@mail.gmail.com>
On 10 Nov 2010, at 4:45, Yaron Minsky wrote:
> let ( |! ) x f = f x
This is the same as F#'s pipe operator (|>) which I find extremely useful because with it code reads the way it works, not backwards:
2 |> tenfold |> add 1 |> double => 42
(ok, this is a ridiculous example, but you get the point).
Regards.
-DS
next prev parent reply other threads:[~2010-11-10 10:06 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-10 3:19 Arlen Christian Mart Cuss
2010-11-10 3:45 ` [Caml-list] " Yaron Minsky
2010-11-10 4:37 ` Arlen Christian Mart Cuss
2010-11-10 10:06 ` DS [this message]
2010-11-10 13:23 ` Michael Ekstrand
2010-11-10 6:59 mark
2010-11-10 12:51 ` Jon Harrop
2010-11-14 18:20 ` Till Varoquaux
2010-11-10 13:44 mark
2010-11-10 14:13 ` Jon Harrop
2010-11-10 16:10 ` Stephan Tolksdorf
2010-11-10 17:41 ` Jon Harrop
2010-11-10 18:52 ` Stephan Tolksdorf
2010-11-10 15:18 mark
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ABB215C3-96A8-4132-94BD-A81C2CE3DB87@sol42.com \
--to=ds.caml@sol42.com \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox