From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: * X-Spam-Status: No, score=2.0 required=5.0 tests=AWL,DNS_FROM_RFC_ABUSE, DNS_FROM_RFC_POST,NO_REAL_NAME autolearn=disabled version=3.1.3 Received: from discorde.inria.fr (discorde.inria.fr [192.93.2.38]) by yquem.inria.fr (Postfix) with ESMTP id 50C5CBC69 for ; Sun, 5 Aug 2007 12:40:36 +0200 (CEST) Received: from resmaa01.ono.com (smtp.ono.com [62.42.230.12]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id l75AeZHS007565 for ; Sun, 5 Aug 2007 12:40:36 +0200 Received: from [192.168.1.33] (81.38.190.181) by resmaa01.ono.com (7.3.118.8) (authenticated as tmp123@menta.net) id 46A5AFDF00459E63 for caml-list@yquem.inria.fr; Sun, 5 Aug 2007 12:40:29 +0200 Message-ID: <46B5A917.1090303@menta.net> Date: Sun, 05 Aug 2007 12:40:23 +0200 From: tmp123@menta.net User-Agent: Mozilla Thunderbird 1.0 (X11/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: caml-list@yquem.inria.fr Subject: bijective association Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Miltered: at discorde with ID 46B5A923.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; implements:01 associative:01 hash:01 functions:01 module:03 tmp:05 maps:10 should:13 type:14 add:14 something:15 use:16 thanks:17 hello:17 there:18 Hello, Please, knows someone if there are any module who implements a bijective association ( 'a <=> 'b)? functions should be something like (assuming 't is the type of the association): add : 't -> 'a -> 'b -> 't find_a : 't -> 'a -> 'b find_b : 't -> 'b -> 'a remove : 't -> 'a -> 't ... If not, which one could be the best option: use two associative lists, two maps, two hash tables or others? Thanks a lot.