aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorAndrea Corallo2019-10-11 12:18:21 -0400
committerStefan Monnier2019-10-11 12:18:21 -0400
commit421db07d061cdc493300b30646c2acd13f26d8f3 (patch)
treece05322b0458a08547371254aaad0623235fbe77 /etc
parent65cda95be4f69c32b16364c95cb7c08971bc9397 (diff)
downloademacs-421db07d061cdc493300b30646c2acd13f26d8f3.tar.gz
emacs-421db07d061cdc493300b30646c2acd13f26d8f3.zip
* 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.
Diffstat (limited to 'etc')
-rw-r--r--etc/NEWS2
1 files changed, 2 insertions, 0 deletions
diff --git a/etc/NEWS b/etc/NEWS
index 4e7843ced85..2fe0a907ef4 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -665,6 +665,8 @@ at the end of the active minibuffer.
665*** New generic function 'map-insert'. 665*** New generic function 'map-insert'.
666 666
667+++ 667+++
668** The 'type' arg can be a list '(hash-table :key1 VAL1 :key2 VAL2 ...)'
669
668** seq.el 670** seq.el
669New convenience functions 'seq-first' and 'seq-rest' give easy access 671New convenience functions 'seq-first' and 'seq-rest' give easy access
670to respectively the first and all but the first elements of sequences. 672to respectively the first and all but the first elements of sequences.