English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

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 caml-list-request@inria.fr.  Archives: http://caml.inria.fr