From: Artur Malabarba Date: Sat, 25 Apr 2015 16:27:13 +0000 (+0100) Subject: * lisp/emacs-lisp/map.el (map-pairs): Dump redundant lambda X-Git-Tag: emacs-25.0.90~1873^2~6 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=c576ab54b50731fbcc263eeb118d45a89e39f87e;p=emacs.git * lisp/emacs-lisp/map.el (map-pairs): Dump redundant lambda --- diff --git a/lisp/emacs-lisp/map.el b/lisp/emacs-lisp/map.el index 3efab404896..4b53524d728 100644 --- a/lisp/emacs-lisp/map.el +++ b/lisp/emacs-lisp/map.el @@ -95,9 +95,7 @@ Map can be a nested map composed of alists, hash-tables and arrays." (defun map-pairs (map) "Return the elements of MAP as key/value association lists." - (map-apply (lambda (key value) - (cons key value)) - map)) + (map-apply #'cons map)) (defun map-length (map) "Return the length of MAP."