Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

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: 2001-04-26 (00:05)
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  Archives: