From 31251ebd8108b47f25e6282ed2ae9cf832c7967d Mon Sep 17 00:00:00 2001 From: Andrey Orst Date: Mon, 9 Nov 2020 22:34:09 +0300 Subject: fix(core): add missing doc --- README.org | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'README.org') diff --git a/README.org b/README.org index ff2a4cf..56356c1 100644 --- a/README.org +++ b/README.org @@ -482,13 +482,11 @@ These are commonly used so it makes sense to have that, without defining via ano Other predicates are self-explanatory: -- =any?= - =assoc?= - =boolean?= - =double?= - =empty?= - =even?= -- =every?= - =false?= - =int?= - =neg?= @@ -499,9 +497,9 @@ Other predicates are self-explanatory: - =true?= - =zero?= -** =eq?= +** =eq= Deep compare values. -If given two tables, recursively calls =eq?= on each field until one of the tables exhausted. +If given two tables, recursively calls =eq= on each field until one of the tables exhausted. Other values are compared with default equality operator. ** =comp= @@ -519,6 +517,16 @@ Compose functions into one function. # LocalWords: namespaces defmulti defmethod metamethod butlast # LocalWords: prepend LocalWords docstring +** =every?= and =not-any?= +=every?= checks if predicate is true for every item in the table. +=not-any?= checks if predicate is false foe every item in the table. + +#+begin_src fennel + >> (every? pos-int? [1 2 3 4]) + true + >> (not-any? pos-int? [-1 -2 -3 4.2]) + true +#+end_src * Footnotes [fn:1] https://todo.sr.ht/~technomancy/fennel/18#event-56799 -- cgit v1.2.3