New in Emacs 25.1: map.el library16 Feb 2016, by Artur Malabarba.
New in 25.1 post series
- New in Emacs 25.1: Query-replace history is enhanced.
- New in Emacs 25.1: Better Rectangles
- New on Elpa and in Emacs 25.1: let-alist
- New in Emacs 25.1: Easily install multifile package from a directory
- New in Emacs 25.1: comment-line
- New on Elpa and in Emacs 25.1: seq.el
- New in Emacs 25.1: Have prettify-symbols-mode reveal the symbol at point
- New in Emacs 25.1: Round quotes in Help buffers
- New in Emacs 25.1: Easily search for non-ASCII characters
- New in Emacs 25.1: EWW improvements
- New in Emacs 25.1: map.el library
- New in Emacs 25.1: More flow control macros
Another library by the productive Nicolas Petton.
map.el is a cousin to
seq.el (remember?), but instead of manipulating plain sequences, it
manipulates map-like collections (also known as dictionaries).
The range of functions should include everything you expect, from
map-keys to get a list of the values and keys (duh), to general getters
and setters like
map-put. Inside it, you’ll even find some
fancier stuff like
map-nested-elt. For those
who know what that means, it also comes with a
Note that this library does not introduce a new data structure. It simply provides a consistent and unified API for dealing with any map-like structure you need. This applies to alists, hash-maps, and even vectors (it treats the vector as a dictionary whose keys are all integers).