Skip to content

Commit

Permalink
Use symbols _ for side effecting mod-fns
Browse files Browse the repository at this point in the history
  • Loading branch information
Olical committed Apr 24, 2022
1 parent 1f44111 commit 0c82834
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fnl/aniseed/macros.fnl
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@
(if (seq? args)
;; If it's sequential, we execute the fn for side effects.
(each [_ arg (ipairs args)]
(=> :_ `(,mod-fn ,(tostring arg))))
(=> (sym :_) `(,mod-fn ,(tostring arg))))

;; Otherwise we need to bind the execution to a name.
(sorted-each
Expand Down
2 changes: 1 addition & 1 deletion lua/aniseed/macros.fnl
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@
(if (seq? args)
;; If it's sequential, we execute the fn for side effects.
(each [_ arg (ipairs args)]
(=> :_ `(,mod-fn ,(tostring arg))))
(=> (sym :_) `(,mod-fn ,(tostring arg))))

;; Otherwise we need to bind the execution to a name.
(sorted-each
Expand Down

0 comments on commit 0c82834

Please sign in to comment.