emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] map c576ab5: * lisp/emacs-lisp/map.el (map-pairs): Dump re


From: Artur Malabarba
Subject: [Emacs-diffs] map c576ab5: * lisp/emacs-lisp/map.el (map-pairs): Dump redundant lambda
Date: Sat, 25 Apr 2015 16:29:46 +0000

branch: map
commit c576ab54b50731fbcc263eeb118d45a89e39f87e
Author: Artur Malabarba <address@hidden>
Commit: Artur Malabarba <address@hidden>

    * lisp/emacs-lisp/map.el (map-pairs): Dump redundant lambda
---
 lisp/emacs-lisp/map.el |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/lisp/emacs-lisp/map.el b/lisp/emacs-lisp/map.el
index 3efab40..4b53524 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."



reply via email to

[Prev in Thread] Current Thread [Next in Thread]