diff options
| author | Andrea Corallo | 2019-10-11 12:18:21 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2019-10-11 12:18:21 -0400 |
| commit | 421db07d061cdc493300b30646c2acd13f26d8f3 (patch) | |
| tree | ce05322b0458a08547371254aaad0623235fbe77 /etc | |
| parent | 65cda95be4f69c32b16364c95cb7c08971bc9397 (diff) | |
| download | emacs-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/NEWS | 2 |
1 files changed, 2 insertions, 0 deletions
| @@ -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 |
| 669 | New convenience functions 'seq-first' and 'seq-rest' give easy access | 671 | New convenience functions 'seq-first' and 'seq-rest' give easy access |
| 670 | to respectively the first and all but the first elements of sequences. | 672 | to respectively the first and all but the first elements of sequences. |