From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Mark Oteiza Newsgroups: gmane.emacs.devel Subject: Re: [ELPA] New package: hap.el Date: Wed, 01 Mar 2017 08:44:34 -0500 Message-ID: <87h93dm7r1.fsf@holos> References: <8760jtgymr.fsf@calancha-pc> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1488375893 28730 195.159.176.226 (1 Mar 2017 13:44:53 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 1 Mar 2017 13:44:53 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: Emacs developers To: Tino Calancha Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 01 14:44:49 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cj4Ye-0006Vn-1k for ged-emacs-devel@m.gmane.org; Wed, 01 Mar 2017 14:44:44 +0100 Original-Received: from localhost ([::1]:46621 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cj4Yj-0006IJ-1e for ged-emacs-devel@m.gmane.org; Wed, 01 Mar 2017 08:44:49 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50765) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cj4Yc-0006Hk-L3 for emacs-devel@gnu.org; Wed, 01 Mar 2017 08:44:43 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cj4YY-0001Aj-RX for emacs-devel@gnu.org; Wed, 01 Mar 2017 08:44:42 -0500 Original-Received: from mail-yw0-x22b.google.com ([2607:f8b0:4002:c05::22b]:36214) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cj4YY-0001AU-LY for emacs-devel@gnu.org; Wed, 01 Mar 2017 08:44:38 -0500 Original-Received: by mail-yw0-x22b.google.com with SMTP id v200so31201246ywc.3 for ; Wed, 01 Mar 2017 05:44:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=udel-edu.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=E9OmADM9mS1Jf4tAQeUeDVSec1YxGFzJe9+5c6zLz7g=; b=u1q2pSxLuMYgpRVuzF1BsdKttGTwJMuAUSIYYresFLz4hbEKzT8n6GSNoR623A3BXj i1DLXgGHlkHWIKOmcUW3Mj4T5N0EGwGTKi+9KPR4C1jBpIcmc+ovAV6kr771JDUEUwWD F5F4gre2FZ1bwp9a2KVsBNlxfdjlRXq5mgeFsNAm4wSLZXepUl8HluXjMBXIGBx468+6 RHjiAeV32ldiFhgAWQAkFq7QczEI9t+2EXfkuzHrnTU72/rXTLoPqEaIWSfNGCYn6Ht2 DSGNVl9iJtbARDTWEKW1Y23iMNBlUNo6pV8sjbEbice8ux+7ooph+mI46s5v5hV4PyWg 6LvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=E9OmADM9mS1Jf4tAQeUeDVSec1YxGFzJe9+5c6zLz7g=; b=q56FKJTdiBE4D7xeYSr5WSrhHlQ7Hl268zt8SXxOIQ4jmXGm01n79/53d5cQ5ZIoMa bFkIlEZigYFVsrIA+6UwMtPjpYOqSvMKCSCnNiVKpyJBjZW9kTTqzbIeVCcXOrH5ueAL oMn/Cx1NML44g2NQ0OKd46orueW6g6ukL1Eil5ljeAr7NGGYJysq3vLGOZtQBpkQVjnx bDqHRR55fn5PYb5Rg1XujBVXmwyck+a2U3cDPCuHFXac+aWehHbqzV1wA28JC3dTqyEU ctxWaucKvMKA+aLQNuolPW6NfHTe873Cedo29qeQNCl+Da/19Hb46UOElAGB7mtpT94A oHkw== X-Gm-Message-State: AMke39l+h1wKtKYeSDmCkRa37SeKrwJLSUGF3MQhe8h3PilCURGjJa0kEK9/7MRo1xgyhw2H X-Received: by 10.237.36.210 with SMTP id u18mr10454884qtc.51.1488375875673; Wed, 01 Mar 2017 05:44:35 -0800 (PST) Original-Received: from holos.localdomain (pool-173-67-40-97.bltmmd.fios.verizon.net. [173.67.40.97]) by smtp.gmail.com with ESMTPSA id t12sm3185182qke.9.2017.03.01.05.44.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 01 Mar 2017 05:44:34 -0800 (PST) Original-Received: by holos.localdomain (Postfix, from userid 1000) id 1897B69177; Wed, 1 Mar 2017 08:44:34 -0500 (EST) In-Reply-To: <8760jtgymr.fsf@calancha-pc> (Tino Calancha's message of "Wed, 01 Mar 2017 18:00:28 +0900") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:4002:c05::22b X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:212678 Archived-At: Tino Calancha writes: > hap.el provides following items: > > *) Convert between alist, plist and hash table. > E.g.: > (hap-alist-to-hash-table '((1 . 2) (a . b))) > => #s(hash-table size 65 test eql rehash-size 1.5 rehash-threshold 0.8125 data (1 2 a b)) > > *) Define constructors for alist, plist and hash table > accepting two sequences: KEYS and VALUES. > E.g.: > (hap-alist '(1 2) [a b]) > => ((1 . a) (2 . b)) > > *) Add functions to compare two hash tables. > E.g.: (I didn't read carefully, sorry if I'm stating the obvious) There's already map.el which does some of this and perhaps could be improved/extended and exposed on ELPA. Also, some hash-table utility functions live in subr-x.el. Perhaps some of these would fit there. Finally, I do remember the following related third party library: https://github.com/nicferrier/emacs-kv