emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ELPA] New package: hap.el


From: Mark Oteiza
Subject: Re: [ELPA] New package: hap.el
Date: Wed, 01 Mar 2017 08:44:34 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

Tino Calancha <address@hidden> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]