[Top][All Lists]

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

Re: [ELPA] New package: hap.el

From: Stefan Monnier
Subject: Re: [ELPA] New package: hap.el
Date: Thu, 02 Mar 2017 01:43:54 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

> In hap.el, optionally, you can convert from alist to hash table,
> so that:
> (let ((map '((1 . a) (1 . foo) (2 . b))))
>   (equal
>    (alist-get 1 map)
>    (gethash 1 (map-into map 'hash-table))))
> => t

Oh, you've just found a bug in map.el.  The intention is that it returns t.

> We might do plist-get setf-able as it was done for alist-get.

That seems to be unrelated to hap.el/map.el, or am I missing something?


reply via email to

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