From fe916085784ca5615c879f80261f01954a2a1dd5 Mon Sep 17 00:00:00 2001 From: Andrey Listopadov Date: Thu, 11 Mar 2021 19:09:28 +0300 Subject: fix: update macros comparison function builder No need to modify the metatable in macros. --- init.fnl | 1 + 1 file changed, 1 insertion(+) (limited to 'init.fnl') 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))))) -- cgit v1.2.3