]> code.delx.au - gnu-emacs/commit
Add a pcase pattern for maps and `map-let' based on it
authorNicolas Petton <nicolas@petton.fr>
Tue, 2 Jun 2015 20:13:38 +0000 (22:13 +0200)
committerNicolas Petton <nicolas@petton.fr>
Tue, 2 Jun 2015 20:19:48 +0000 (22:19 +0200)
commit988d72118687758af6c2b7c56c80056630d428ca
tree55054d3d1dc8bf9d4fe9f347a4c25a0bf3a507c8
parent6591d361390daa6c36045b82acb9ea548687879c
Add a pcase pattern for maps and `map-let' based on it

* lisp/emacs-lisp/map.el (map-let): New macro.
(map--make-pcase-bindings, map--make-pcase-patterns): New functions.
* test/automated/map-tests.el: New test for `map-let'.
lisp/emacs-lisp/map.el
test/automated/map-tests.el