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

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

[elpa] externals/dash f8db9e1 176/426: Avoid unnecessary copying for -in


From: Phillip Lord
Subject: [elpa] externals/dash f8db9e1 176/426: Avoid unnecessary copying for -insert-at
Date: Tue, 04 Aug 2015 19:37:33 +0000

branch: externals/dash
commit f8db9e19dc619ca031b0bf69d3fdcb951d54150e
Author: Emanuel Evans <address@hidden>
Commit: Emanuel Evans <address@hidden>

    Avoid unnecessary copying for -insert-at
---
 dash.el |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dash.el b/dash.el
index 2cb00b8..2a4ffeb 100644
--- a/dash.el
+++ b/dash.el
@@ -414,7 +414,7 @@ FROM or TO may be negative."
 (defun -insert-at (n x list)
   "Returns a list with X inserted into LIST at position N."
   (let ((split-list (-split-at n list)))
-    (append (car split-list) (cons x (cadr split-list)))))
+    (nconc (car split-list) (cons x (cadr split-list)))))
 
 (defmacro --split-with (pred list)
   "Anaphoric form of `-split-with'."



reply via email to

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