summaryrefslogtreecommitdiffstats
path: root/txr.1
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2018-12-13 06:28:50 -0800
committerKaz Kylheku <kaz@kylheku.com>2018-12-13 06:28:50 -0800
commitc547316cbfa514fd793a147c6f2e5aa5d5e0e283 (patch)
treeebcb101d2265a8e4bf411403c67f86fc61ffe703 /txr.1
parent526a9c89d0c74788adbc1492e613d174f03fb268 (diff)
downloadtxr-c547316cbfa514fd793a147c6f2e5aa5d5e0e283.tar.gz
txr-c547316cbfa514fd793a147c6f2e5aa5d5e0e283.tar.bz2
txr-c547316cbfa514fd793a147c6f2e5aa5d5e0e283.zip
nzerop: new function.
* arith.c (nzerop): New function. * eval.c (eval_init): Register nzerop intrinsic. * lib.h (nzerop): Declared. * txr.1: Documented.
Diffstat (limited to 'txr.1')
-rw-r--r--txr.125
1 files changed, 24 insertions, 1 deletions
diff --git a/txr.1 b/txr.1
index 19b0580d..4d1249df 100644
--- a/txr.1
+++ b/txr.1
@@ -35770,9 +35770,10 @@ a
or
.codn float .
-.coNP Function @ zerop
+.coNP Functions @ zerop and @ nzerop
.synb
.mets (zerop << number )
+.mets (nzerop << number )
.syne
.desc
The
@@ -35797,6 +35798,28 @@ and
.code nil
for all other characters.
+If
+.meta number
+is a range, then
+.code zerop
+returns
+.code t
+if both of the range endpoints individually satisfy
+.codn zerop .
+
+The
+.code nzerop
+function is the logical inverse of
+.codn zerop :
+it returns
+.code t
+for those arguments for which
+.code zerop
+returns
+.code nil
+and
+.IR "vice versa" .
+
.coNP Functions @ plusp and @ minusp
.synb
.mets (plusp << number )