From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id CAA22542; Thu, 26 Apr 2001 02:05:32 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id CAA22581 for ; Thu, 26 Apr 2001 02:05:31 +0200 (MET DST) Received: from staff.gtmd.com (adsl-63-195-80-23.dsl.snfc21.pacbell.net [63.195.80.23]) by nez-perce.inria.fr (8.11.1/8.10.0) with ESMTP id f3Q05TP21666 for ; Thu, 26 Apr 2001 02:05:30 +0200 (MET DST) Received: from aria.chasm.org (aria [192.168.0.3]) by staff.gtmd.com (8.9.3/8.9.3) with ESMTP id RAA83903 for ; Wed, 25 Apr 2001 17:04:35 -0700 (PDT) (envelope-from charles@chasm.org) Message-Id: <5.0.2.1.0.20010425164708.021928c0@chasm.org> X-Sender: charles@chasm.org X-Mailer: QUALCOMM Windows Eudora Version 5.0.2 Date: Wed, 25 Apr 2001 17:07:43 -0700 To: caml-list@inria.fr From: Charles Martin Subject: [Caml-list] operators: compose and Haskell's $ operator Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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