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 CAA06099; Fri, 8 Jun 2001 02:20:27 +0200 (MET DST) Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id CAA05983 for ; Fri, 8 Jun 2001 02:20:26 +0200 (MET DST) Received: from staff.cs.usyd.edu.au (staff.cs.usyd.edu.au [129.78.8.1]) by concorde.inria.fr (8.11.1/8.10.0) with SMTP id f580KOf09089 for ; Fri, 8 Jun 2001 02:20:24 +0200 (MET DST) Received: from hons.cs.usyd.edu.au. by staff.cs.usyd.edu.au.; Fri, 08 Jun 2001 10:20:19 +1000 Received: from localhost (mrak@localhost) by hons.cs.usyd.edu.au (8.9.3/8.9.3) with ESMTP id KAA03265 for ; Fri, 8 Jun 2001 10:20:19 +1000 X-Authentication-Warning: hons.cs.usyd.edu.au: mrak owned process doing -bs Date: Fri, 8 Jun 2001 10:20:19 +1000 (EST) From: Mark Wotton cc: caml-list@inria.fr Subject: [Caml-list] Currying in Ocaml In-Reply-To: <20010608084947C.garrigue@kurims.kyoto-u.ac.jp> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Is it possible to curry on arbitrary parameters in Ocaml, or is it strictly left to right? I have a function "print_all depth tree" and sometimes I'd like to curry on depth, other times on tree. I see that if i write a little wrapper like "rev_curry_print_all tree depth = print_all depth tree" I could curry using that instead, but this function is called inside a deep recursive loop and I'm worried that I'll get an unnecessary function call overhead. Is there a better way of doing this? regards, Mark ------------------- Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr