diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2018-12-13 06:28:50 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2018-12-13 06:28:50 -0800 |
commit | c547316cbfa514fd793a147c6f2e5aa5d5e0e283 (patch) | |
tree | ebcb101d2265a8e4bf411403c67f86fc61ffe703 /txr.1 | |
parent | 526a9c89d0c74788adbc1492e613d174f03fb268 (diff) | |
download | txr-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.1 | 25 |
1 files changed, 24 insertions, 1 deletions
@@ -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 ) |