Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] operators: compose and Haskell's $ operator
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Charles Martin <charles@c...>
Subject: [Caml-list] operators: compose and Haskell's $ operator
Does someone out there have an out-of-the box solution for adding composition and an equivalent for Haskell's $ operator to OCaml?

I've been using let (<<) f g x = f (g x) for composition, but an equivalent for the $ operator eludes me, as it needs to be right associative and of low precedence.  Maybe someone with some Haskell envy has figured something out using camlp4?

-------------------
To unsubscribe, mail caml-list-request@inria.fr.  Archives: http://caml.inria.fr