summaryrefslogtreecommitdiff
path: root/init.fnl
diff options
context:
space:
mode:
authorAndrey Listopadov <andreyorst@gmail.com>2021-03-11 19:09:28 +0300
committerAndrey Listopadov <andreyorst@gmail.com>2021-03-11 19:09:28 +0300
commitfe916085784ca5615c879f80261f01954a2a1dd5 (patch)
treed0e205e1510a9b81f4bc31f4524a1f226bf68e59 /init.fnl
parent129a3a5d48f429de174faa6368e9625dcfb65f9e (diff)
fix: update macros comparison function builder
No need to modify the metatable in macros.
Diffstat (limited to 'init.fnl')
-rw-r--r--init.fnl1
1 files changed, 1 insertions, 0 deletions
diff --git a/init.fnl b/init.fnl
index 5621127..a56da51 100644
--- a/init.fnl
+++ b/init.fnl
@@ -957,6 +957,7 @@ functions also reuse this indexing method, such as sets."
(set count-b (+ count-b 1)))
(set res (= count-a count-b)))
res)
+ :else
false))
([x y & xs]
(reduce #(and $1 $2) (eq x y) (mapv #(eq x $) xs)))))