emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] externals/pyim 24fe5f8 1/2: * pyim-common.el (pyim-zip): 优化速度。


From: ELPA Syncer
Subject: [elpa] externals/pyim 24fe5f8 1/2: * pyim-common.el (pyim-zip): 优化速度。
Date: Sat, 4 Dec 2021 22:57:25 -0500 (EST)

branch: externals/pyim
commit 24fe5f88c7c857068d217939ce174fc7b6839278
Author: Feng Shu <tumashu@163.com>
Commit: Feng Shu <tumashu@163.com>

    * pyim-common.el (pyim-zip): 优化速度。
---
 pyim-common.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/pyim-common.el b/pyim-common.el
index 7b84473..c6d327b 100644
--- a/pyim-common.el
+++ b/pyim-common.el
@@ -87,7 +87,8 @@
 
 (defun pyim-zip (lists)
   "Zip LISTS and delete dups: ((a b c) (d e)) => (a d b e c)."
-  (when lists
+  (if (< (length lists) 2)
+      (car lists)
     (let* ((n (apply #'max (mapcar #'length lists)))
            (lists (mapcar
                    (lambda (x)



reply via email to

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