Version française
Home     About     Download     Resources     Contact us    
Browse thread
Infix function composition operator
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: DS <ds.caml@s...>
Subject: Re: [Caml-list] Infix function composition operator
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