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

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

[elpa] externals/pyim cc3ccde 2/2: * pyim-common.el (pyim-zip): 优化性能。


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

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

    * pyim-common.el (pyim-zip): 优化性能。
---
 pyim-common.el | 1 +
 1 file changed, 1 insertion(+)

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



reply via email to

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