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

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

[elpa] externals/compat 835b4301b4 62/84: Add 'pure' and 'side-effect-fr


From: ELPA Syncer
Subject: [elpa] externals/compat 835b4301b4 62/84: Add 'pure' and 'side-effect-free' properties to take
Date: Tue, 3 Jan 2023 08:57:36 -0500 (EST)

branch: externals/compat
commit 835b4301b4f2a6de02e9dacf0215857753018ab3
Author: Philip Kaludercic <philipk@posteo.net>
Commit: Philip Kaludercic <philipk@posteo.net>

    Add 'pure' and 'side-effect-free' properties to take
---
 compat-29.el | 1 +
 1 file changed, 1 insertion(+)

diff --git a/compat-29.el b/compat-29.el
index 7d3f26b401..65a300c78f 100644
--- a/compat-29.el
+++ b/compat-29.el
@@ -105,6 +105,7 @@ Otherwise, return LIST after truncating it."
   "Return the first N elements of LIST.
 If N is zero or negative, return nil.
 If N is greater or equal to the length of LIST, return LIST (or a copy)."
+  (declare (pure t) (side-effect-free t))
   (let (copy)
     (while (and (< 0 n) list)
       (push (pop list) copy)



reply via email to

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