Browse thread
[Caml-list] operators: compose and Haskell's $ operator
- Charles Martin
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ 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