]> git.eshelyaron.com Git - emacs.git/commit
* lisp/emacs-lisp/map.el (map-into) <hash-table>: Allow keyword args
authorAndrea Corallo <akrl@sdf.org>
Fri, 11 Oct 2019 16:18:21 +0000 (12:18 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Fri, 11 Oct 2019 16:18:21 +0000 (12:18 -0400)
commit421db07d061cdc493300b30646c2acd13f26d8f3
treece05322b0458a08547371254aaad0623235fbe77
parent65cda95be4f69c32b16364c95cb7c08971bc9397
* lisp/emacs-lisp/map.el (map-into) <hash-table>: Allow keyword args

(map--into-hash): New function, extracted from `map-into <hash-table>`.
Speed it up a bit by using gethash instead of map-elt when we know
we're accessing a hash table.

* test/lisp/emacs-lisp/map-tests.el (test-map-into): Add corresponding test.
etc/NEWS
lisp/emacs-lisp/map.el
test/lisp/emacs-lisp/map-tests.el