From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by sympa.inria.fr (Postfix) with ESMTPS id 8522A7F8A0 for ; Tue, 8 Apr 2014 08:23:09 +0200 (CEST) Received-SPF: Neutral (mail2-smtp-roc.national.inria.fr: domain of simon.cruanes.2007@m4x.org does not assert whether or not 129.104.30.34 is permitted sender) identity=pra; client-ip=129.104.30.34; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="SRS0=pGnC=ZI=m4x.org=simon.cruanes.2007@bounces.m4x.org"; x-sender="simon.cruanes.2007@m4x.org"; x-conformance=sidf_compatible; x-record-type="spf2.0" Received-SPF: Pass (mail2-smtp-roc.national.inria.fr: domain of SRS0=pGnC=ZI=m4x.org=simon.cruanes.2007@bounces.m4x.org designates 129.104.30.34 as permitted sender) identity=mailfrom; client-ip=129.104.30.34; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="SRS0=pGnC=ZI=m4x.org=simon.cruanes.2007@bounces.m4x.org"; x-sender="SRS0=pGnC=ZI=m4x.org=simon.cruanes.2007@bounces.m4x.org"; x-conformance=sidf_compatible; x-record-type="spf2.0" Received-SPF: Pass (mail2-smtp-roc.national.inria.fr: domain of postmaster@mx1.polytechnique.org designates 129.104.30.34 as permitted sender) identity=helo; client-ip=129.104.30.34; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="SRS0=pGnC=ZI=m4x.org=simon.cruanes.2007@bounces.m4x.org"; x-sender="postmaster@mx1.polytechnique.org"; x-conformance=sidf_compatible; x-record-type="v=spf1" X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Au4EANuUQ1OBaB4inGdsb2JhbABZFoMrg2GqHo4JEIhhAwKBHBYOAQEBAQEICwkJFCiCHAkBAQEEIw8BOxsLAwEUDR0CAiEkEgYBEhKHUwMRBAmoLZsrAwqGaxeMURyBeYJ6gUkElm+BbYE0hR6GH4kB X-IPAS-Result: Au4EANuUQ1OBaB4inGdsb2JhbABZFoMrg2GqHo4JEIhhAwKBHBYOAQEBAQEICwkJFCiCHAkBAQEEIw8BOxsLAwEUDR0CAiEkEgYBEhKHUwMRBAmoLZsrAwqGaxeMURyBeYJ6gUkElm+BbYE0hR6GH4kB X-IronPort-AV: E=Sophos;i="4.97,816,1389740400"; d="scan'208,217";a="67010497" Received: from mx1.polytechnique.org ([129.104.30.34]) by mail2-smtp-roc.national.inria.fr with ESMTP/TLS/ADH-AES256-SHA; 08 Apr 2014 08:23:09 +0200 Received: from [192.168.0.10] (mna75-4-82-225-76-110.fbx.proxad.net [82.225.76.110]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ssl.polytechnique.org (Postfix) with ESMTPSA id 11E8314091323; Tue, 8 Apr 2014 08:23:08 +0200 (CEST) User-Agent: K-9 Mail for Android In-Reply-To: References: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----Z0WHH3QY0H7XKZTRS486GNZBILMSEG" Content-Transfer-Encoding: 8bit From: Simon Cruanes Date: Tue, 08 Apr 2014 08:23:04 +0200 To: Johan Mazel ,OCaml Mailing List Message-ID: X-AV-Checked: ClamAV using ClamSMTP at svoboda.polytechnique.org (Tue Apr 8 08:23:08 2014 +0200 (CEST)) X-Spam-Flag: No, tests=bogofilter, spamicity=0.000100, queueID=5FB9A14091324 X-Org-Mail: simon.cruanes.2007@polytechnique.org Subject: Re: [Caml-list] Hashset implementation ------Z0WHH3QY0H7XKZTRS486GNZBILMSEG Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Hi, the standard Hashtbl can be used as a basic hashset (using unit as values and the set elements as keys) for simple uses. It won't provide intersection or union, though. On 8 avril 2014 05:42:25 UTC+02:00, Johan Mazel wrote: >Hi >I want to use hashset in OCaml. >I found these two implemtetations: >*https://www.lri.fr/~filliatr/ftp/ocaml/ds/hashset.ml.html >*http://caml.inria.fr/cgi-bin/hump.en.cgi?contrib=504 >Is there anything else available somewhere ? >Regards >Johan > >-- >Caml-list mailing list. Subscription management and archives: >https://sympa.inria.fr/sympa/arc/caml-list >Beginner's list: http://groups.yahoo.com/group/ocaml_beginners >Bug reports: http://caml.inria.fr/bin/caml-bugs -- Simon ------Z0WHH3QY0H7XKZTRS486GNZBILMSEG Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit Hi, the standard Hashtbl can be used as a basic hashset (using unit as values and the set elements as keys) for simple uses. It won't provide intersection or union, though.

On 8 avril 2014 05:42:25 UTC+02:00, Johan Mazel <johan.mazel@gmail.com> wrote:
Hi
I want to use hashset in OCaml.
I found these two implemtetations:
Is there anything else available somewhere ?
Regards
Johan

--
Simon ------Z0WHH3QY0H7XKZTRS486GNZBILMSEG--