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