From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,76e8d825615718a,start X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!t14g2000prm.googlegroups.com!not-for-mail From: Michael R Newsgroups: comp.lang.ada Subject: Ada.Containers Hash function for a set of small integers Date: Thu, 22 Apr 2010 16:26:18 -0700 (PDT) Organization: http://groups.google.com Message-ID: <50701baa-7c05-450c-a42d-c699516ddc00@t14g2000prm.googlegroups.com> NNTP-Posting-Host: 208.91.1.10 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1271978803 29463 127.0.0.1 (22 Apr 2010 23:26:43 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 22 Apr 2010 23:26:43 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: t14g2000prm.googlegroups.com; posting-host=208.91.1.10; posting-account=iokpWwkAAAC4FdoU8cY5F_WfowBALHIE User-Agent: G2/1.0 X-HTTP-Via: 1.1 techops-proxy03.eng.vmware.com:3128 (squid/2.7.STABLE6) X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 GTBDFff GTB7.0,gzip(gfe) Xref: g2news1.google.com comp.lang.ada:10144 Date: 2010-04-22T16:26:18-07:00 List-Id: Hi Folks, I'd like to use the generic Hashed_Maps container to store mappings from a set of small integers (three) to Wide_Strings (Indefinite_Hashed_Maps): (1, 10, 4) => "ABC", (10, 3, 5) => "XYZ", Does anyone have recommendations on how best to implement the Hash function for keys like this? Take care, Michael.