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 NAA30094; Sun, 22 Jun 2003 13:43:00 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f 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 NAA29774 for ; Sun, 22 Jun 2003 13:42:59 +0200 (MET DST) Received: from smtp.mbg.ocn.ne.jp (mbg.ocn.ne.jp [210.190.142.181]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id h5MBgvH08837 for ; Sun, 22 Jun 2003 13:42:58 +0200 (MET DST) Received: from localhost (p6114-ipad55marunouchi.tokyo.ocn.ne.jp [220.104.140.114]) by smtp.mbg.ocn.ne.jp (Postfix) with ESMTP id 9A78A4DC8 for ; Sun, 22 Jun 2003 20:42:55 +0900 (JST) Date: Sun, 22 Jun 2003 20:42:04 +0900 (JST) Message-Id: <20030622.204204.01055095.yoriyuki@mbg.sphere.ne.jp> To: caml-list@inria.fr Subject: [Caml-list] IMap and ISet From: Yamagata Yoriyuki X-Mailer: Mew version 2.2 on Emacs 21.2 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam: no; 0.00; yamagata:01 yoriyuki:01 sphere:01 oliver:01 camomile:01 stdlib:01 unicode:01 int:01 diet:98 interfaces:01 maximal:02 infix:03 unsigned:03 implement:05 integers:05 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk By the suggestion of Diego Oliver, I implement Map and Set for integers using Diet. http://camomile.sf.net/datastruct.html The interfaces are roughly same to Map and Set in stdlib. Since they are used for Unicode, integers are treated as unsigned int. (So, for example, ~-1 is treated as the maximal integer.) If it is not desirable, change definitions of infix operators in the beginning of .ml files. Comments and suggestion are welcome. -- Yamagata Yoriyuki ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners