From 7f006094a4a82cc267e687d040c15b59b149415c Mon Sep 17 00:00:00 2001 From: Andrey Orst Date: Fri, 30 Oct 2020 22:06:00 +0300 Subject: fix(core): add docstrings and improve tests Also add editorconfig script --- core.fnl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core.fnl') diff --git a/core.fnl b/core.fnl index 9f6f5aa..e004d72 100644 --- a/core.fnl +++ b/core.fnl @@ -380,8 +380,8 @@ oppisite truth value." (when-some [tbl (seq tbl)] (reduce -consj [] tbl))) -(fn& core.inc [x] (+ x 1)) -(fn& core.dec [x] (- x 1)) +(fn* core.inc "Increase number by one" [x] (+ x 1)) +(fn* core.dec "Decrease number by one" [x] (- x 1)) (fn* core.assoc "Associate key `k' with value `v' in `tbl'." -- cgit v1.2.3