summaryrefslogtreecommitdiff
path: root/init.fnl
diff options
context:
space:
mode:
authorAndrey Listopadov <andreyorst@gmail.com>2021-03-15 19:12:02 +0300
committerAndrey Listopadov <andreyorst@gmail.com>2021-03-15 19:12:02 +0300
commitafbd1f1c31299ef9e2040b41fce7a8546fce618d (patch)
tree7d3afbb12a606c0b4a3855cfbd6ea41adbcbcac7 /init.fnl
parent49d4cdcaedb4da26cf40a22f5bb8c1d6f5341c23 (diff)
fix: update test suite eq function builder
This really means that I need to externalize it into separate module and just use everywhere, but Fennel doesn't yet feature stable way to do it unfortunately
Diffstat (limited to 'init.fnl')
-rw-r--r--init.fnl2
1 files changed, 1 insertions, 1 deletions
diff --git a/init.fnl b/init.fnl
index 567ee4f..1b84cda 100644
--- a/init.fnl
+++ b/init.fnl
@@ -960,7 +960,7 @@ functions also reuse this indexing method, such as sets."
:else
false))
([x y & xs]
- (reduce #(and $1 $2) (eq x y) (mapv #(eq x $) xs)))))
+ (and (eq x y) (apply eq x xs)))))
(set core.eq (with-meta eq {:fnl/docstring "Deep compare values.