branch: externals/dash
commit 75d29a26806885c38bdba5e74f3dfad46ef10544
Author: Magnar Sveen <[email protected]>
Commit: Magnar Sveen <[email protected]>
Declare --iterate macro before using it. #102
---
dash.el | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/dash.el b/dash.el
index 98c0df6..d398e8b 100644
--- a/dash.el
+++ b/dash.el
@@ -305,6 +305,11 @@ See also: `-flatten-n'"
(-mapcat '-flatten l)
(list l)))
+(defmacro --iterate (form init n)
+ "Anaphoric version of `-iterate'."
+ (declare (debug (form form form)))
+ `(-iterate (lambda (it) ,form) ,init ,n))
+
(defun -flatten-n (num list)
"Flatten NUM levels of a nested LIST.
@@ -1743,11 +1748,6 @@ N is the length of the returned list."
(push (funcall fun (car r)) r))
(nreverse r))))
-(defmacro --iterate (form init n)
- "Anaphoric version of `-iterate'."
- (declare (debug (form form form)))
- `(-iterate (lambda (it) ,form) ,init ,n))
-
(defun -fix (fn list)
"Compute the (least) fixpoint of FN with initial input LIST.