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 UAA28045; Wed, 19 Dec 2001 20:08:15 +0100 (MET) 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 UAA28174 for ; Wed, 19 Dec 2001 20:08:13 +0100 (MET) Received: from mail.info.univ-angers.fr (nes.info.univ-angers.fr [193.49.146.122]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id fBJJ8C106840 for ; Wed, 19 Dec 2001 20:08:13 +0100 (MET) Received: from orion.info-ua (orion.info [172.20.41.6]) by mail.info.univ-angers.fr (Postfix) with ESMTP id 8D546804 for ; Wed, 19 Dec 2001 20:08:11 +0100 (CET) Received: from helios.info-ua (helios.info-ua [172.20.41.5]) by orion.info-ua (Postfix) with ESMTP id E32A0175C6 for ; Wed, 19 Dec 2001 20:08:11 +0100 (MET) Received: by helios.info-ua (Postfix, from userid 759) id 2FDFF1FD08; Wed, 19 Dec 2001 19:08:11 +0000 (MET) From: "Vincent Barichard MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Message-ID: <15392.58778.897378.738285@helios.info-ua> Date: Wed, 19 Dec 2001 20:08:10 +0100 To: caml-list@pauillac.inria.fr Subject: [Caml-list] Polymorphic Set X-Mailer: VM 6.96 under Emacs 20.4.1 Reply-To: Vincent.Barichard@info.univ-angers.fr Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hi, Is there a way in OCAML to create polymorphic Set (as for List) ? I've tried the following code, but ocaml don't like. =09module MySet =3D Set.Make (struct =09=09type t =3D ('a * float) =09=09let compare =3D function (_, valx) -> function (_, valy) -> =09=09=09if valx < valy then 1 =09=09=09else if valx > valy then -1 =09=09=09else 0 =09end) Anybody has an idea on how to do ? Thanks for your help, Vincent --=20 Vincent Barichard M=E9taheuristiques et Optimisation Combinatoire Facult=E9 des Sciences d'Angers Tel : 02 41 73 52 06 ------------------- 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