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=3.0 required=5.0 tests=DNS_FROM_RFC_POST, MISSING_HEADERS,SPF_NEUTRAL autolearn=disabled version=3.1.3 Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by yquem.inria.fr (Postfix) with ESMTP id 48C66BBAF for ; Tue, 5 Aug 2008 23:02:20 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AnsBAP5bmEhKfS4flWdsb2JhbACQeD4BAQEBCQMKBw+WUIYg X-IronPort-AV: E=Sophos;i="4.31,312,1215381600"; d="scan'208";a="27972983" Received: from yw-out-2324.google.com ([74.125.46.31]) by mail4-smtp-sop.national.inria.fr with ESMTP; 05 Aug 2008 23:02:19 +0200 Received: by yw-out-2324.google.com with SMTP id 5so1414808ywb.3 for ; Tue, 05 Aug 2008 14:02:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references :x-google-sender-auth; bh=gIKXZSvBWQmWpoXnpNsylvoZpCQoaXehvUCb0DHB01Y=; b=va/wL4QvCbPgDs4bDlBzcE4wxd55JyzcvHeCX0V+7jOozrC9mke1vmXZHwsxWg6AA1 xAtCoi+9ANoSNCM/sI/liFQgPYpUKBDpMvUEceq3HuVJWXwZJaGCVRLvNfF9fd9avHzV K+DLxY0wc+MHV6l1rp/gfJVeT7VMNuaAWkaH8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references:x-google-sender-auth; b=Dz/P//4K+gyAvoEFVbGAcQLHkZ3buiq5xSqIgNyEvZuEaWW4m30lL9w+uRxJVK7IfL tQfKKoaiIQc8mAwzx0zJpcyf591/cixpzqq+7XxQCF6yGSRomZ9/lRYa3iJwDs3icLAu XcqqfTS9L9c/T+X4ctMe1LHVi3mk+sIW1MjHA= Received: by 10.151.79.19 with SMTP id g19mr2076536ybl.162.1217970138699; Tue, 05 Aug 2008 14:02:18 -0700 (PDT) Received: by 10.150.215.9 with HTTP; Tue, 5 Aug 2008 14:02:18 -0700 (PDT) Message-ID: <49f2e26c0808051402r4a66bc9emf99bd9af61512955@mail.gmail.com> Date: Tue, 5 Aug 2008 16:02:18 -0500 From: "Chris Kauffman" Sender: kauffman77@gmail.com Subject: Re: [Caml-list] Getting an element of a hashtable: simple ... or is it? Cc: caml-list@yquem.inria.fr In-Reply-To: <200808050921.38057.peng.zang@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <94C5D65F-7CA4-48FF-B4AA-E88E82F6C8E1@cs.berkeley.edu> <200808050921.38057.peng.zang@gmail.com> X-Google-Sender-Auth: cde3c4e53d8ef3c0 X-Spam: no; 0.00; hashtable:01 hash:01 iterating:01 cheers:01 caml-list:01 seems:03 element:03 element:03 chris:06 chris:06 table:93 cases:08 storing:08 i'm:09 curious:09 I'm curious what sort of scenario calls for retrieving any single element of a hash table (which is potentially empty?). It seems most of the cases I deal with involve simply storing or iterating over all the elements. Cheers, Chris