From 1b309ac016d806d2f9b44540ed5020f5c60c4256 Mon Sep 17 00:00:00 2001 From: Andrey Orst Date: Fri, 13 Nov 2020 22:54:12 +0300 Subject: fix(core): refactoring - Rename `fn*` to `defn`, `fn&` to `fn+`. - Do not use `fn+` in the core at all, provide it for convenience. - Fix bug in `filter` due to incorrect `cons` implementation. - Update `seq` and `eq` functions in macros --- tests/macros.fnl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/macros.fnl') diff --git a/tests/macros.fnl b/tests/macros.fnl index a9b41fe..402e42d 100644 --- a/tests/macros.fnl +++ b/tests/macros.fnl @@ -133,7 +133,7 @@ (assert-eq (meta g) (when-meta {:fnl/docstring "documentation"}))) (testing "defmulti with multiple arity" - (defmulti f (fn* ([x] x) ([x y] [x y]))) + (defmulti f (defn ([x] x) ([x y] [x y]))) (defmethod f :default ([_] :def) ([_ _] :def2)) (defmethod f :4 ([x] (.. x :2))) (defmethod f [:4 :2] ([x y] 42)) -- cgit v1.2.3