summaryrefslogtreecommitdiffstats
path: root/txr.1
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2016-11-01 20:55:46 -0700
committerKaz Kylheku <kaz@kylheku.com>2016-11-01 20:55:46 -0700
commitd01a12405fbffb6a68345f72a510bf9e25e8ef95 (patch)
treee6467491e22d3ebbd1e8289b34a64dda5fbd7653 /txr.1
parentc038597853327f81ef1fc51584500a0073a9833e (diff)
downloadtxr-d01a12405fbffb6a68345f72a510bf9e25e8ef95.tar.gz
txr-d01a12405fbffb6a68345f72a510bf9e25e8ef95.tar.bz2
txr-d01a12405fbffb6a68345f72a510bf9e25e8ef95.zip
New negated equality test functions.
* eval.c (eval_init): Register neq, neql and nequal intrinsics. * lib.h (neq, neql, nequal): New inline functions. * txr.1: Documented neq, neql and nequal
Diffstat (limited to 'txr.1')
-rw-r--r--txr.148
1 files changed, 48 insertions, 0 deletions
diff --git a/txr.1 b/txr.1
index 47b20ac1..c6fffc4c 100644
--- a/txr.1
+++ b/txr.1
@@ -15433,6 +15433,54 @@ Certain object types have a custom
.code equal
function.
+.coNP Functions @, neq @ neql and @ nequal
+.synb
+.mets (neq < left-obj << right-obj )
+.mets (neql < left-obj << right-obj )
+.mets (nequal < left-obj << right-obj )
+.syne
+.desc
+The functions
+.codn neq ,
+.code neql
+and
+.code nequal
+are logically negated counterparts of, respectively,
+.codn eq ,
+.code eql
+and
+.codn equal .
+
+If
+.code eq
+returns
+.code t
+for a given pair of arguments
+.meta left-obj
+and
+.metn right-obj ,
+then
+.code neq
+returns
+.codn nil .
+.IR "Vice versa" ,
+if
+.code eq
+returns
+.codn nil ,
+.code neq
+returns
+.codn t .
+
+The same relationship exits between
+.code eql
+and
+.codn neql ,
+and between
+.code equal
+and
+.codn nequal .
+
.coNP Function @ less
.synb
.mets (less < left-obj << right-obj )