summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--NEWS.md9
-rw-r--r--dash.el2
2 files changed, 9 insertions, 2 deletions
diff --git a/NEWS.md b/NEWS.md
index 9375c5c..0f5d12d 100644
--- a/NEWS.md
+++ b/NEWS.md
@@ -6,6 +6,13 @@ See the end of the file for license conditions.
## Change log
+### From 2.20.0 to ?.?.?
+
+#### Fixes
+
+- The `-cycle` function is no longer marked as `pure`, as it returns a
+ copy of its argument (#405).
+
### From 2.19.1 to 2.20.0
#### Deprecations
@@ -42,7 +49,7 @@ See the end of the file for license conditions.
immutable constant, and thus unsafe to modify destructively. The
functions in question are: `-clone`, `-cons*`, `-drop-last`,
`-interleave`, `-interpose`, `-iota`, `-non-nil`, `-repeat`,
- `-slice`, `-snoc`, `-split-at`, `-take`, `-take-last`.
+ `-slice`, `-snoc`, `-split-at`, `-take`, `-take-last` (#405).
#### New features
diff --git a/dash.el b/dash.el
index ea7fece..41d1e53 100644
--- a/dash.el
+++ b/dash.el
@@ -1893,7 +1893,7 @@ LISTS, it is generally recommended to use `-unzip-lists' instead."
"Return an infinite circular copy of LIST.
The returned list cycles through the elements of LIST and repeats
from the beginning."
- (declare (pure t) (side-effect-free t))
+ (declare (side-effect-free t))
;; Also works with sequences that aren't lists.
(let ((newlist (append list ())))
(nconc newlist newlist)))