summaryrefslogtreecommitdiff
path: root/core.fnl
diff options
context:
space:
mode:
authorAndrey Orst <andreyorst@gmail.com>2020-11-09 22:34:09 +0300
committerAndrey Orst <andreyorst@gmail.com>2020-11-09 22:37:50 +0300
commit31251ebd8108b47f25e6282ed2ae9cf832c7967d (patch)
tree2fb06c6e001b25ef02b8a01f5552f2ec329be02e /core.fnl
parent7ac429383b6fb61c24de2b7f9b1322dfdaea6f93 (diff)
fix(core): add missing doc
Diffstat (limited to 'core.fnl')
-rw-r--r--core.fnl7
1 files changed, 6 insertions, 1 deletions
diff --git a/core.fnl b/core.fnl
index d22beec..9032ee7 100644
--- a/core.fnl
+++ b/core.fnl
@@ -380,17 +380,22 @@ ignored. Returns a table of results."
(reduce comp (consj fs g f))))
(fn* core.every?
+ "Test if every item in `tbl' satisfies the `pred'."
[pred tbl]
(if (empty? tbl) true
(pred (. tbl 1)) (every? pred [(unpack tbl 2)])
false))
(fn* core.some
+ "Test if any item in `tbl' satisfies the `pred'."
[pred tbl]
(when-let [tbl (seq tbl)]
(or (pred (. tbl 1)) (some pred [(unpack tbl 2)]))))
-(set core.not-any? (comp #(not $) some))
+(set core.not-any?
+ (with-meta (comp #(not $) some)
+ {:fnl/docstring "Test if no item in `tbl' satisfy the `pred'."
+ :fnl/arglist ["pred" "tbl"]}))
(fn& core.complement
"Takes a function `f' and returns the function that takes the same