summaryrefslogtreecommitdiffstats
path: root/txr.1
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2016-12-10 20:06:38 -0800
committerKaz Kylheku <kaz@kylheku.com>2016-12-10 20:06:38 -0800
commit1ca65fef46ca68ca18e3db5a5eac316d5cf25799 (patch)
tree1e8f093a8dafc5467b2c88afe8fd3f633e3e8d64 /txr.1
parent22c3bc10879cc1ee73e8a057f772d4619a0e8d00 (diff)
downloadtxr-1ca65fef46ca68ca18e3db5a5eac316d5cf25799.tar.gz
txr-1ca65fef46ca68ca18e3db5a5eac316d5cf25799.tar.bz2
txr-1ca65fef46ca68ca18e3db5a5eac316d5cf25799.zip
New function: endp.
This improves compatibility with other Lisp dialects in a small way. * eval.c (eval_init): Register endp intrinsic. * lib.c (endp): New function. * lib.h (endp): Declared. * txr.1: Documented endp.
Diffstat (limited to 'txr.1')
-rw-r--r--txr.125
1 files changed, 25 insertions, 0 deletions
diff --git a/txr.1 b/txr.1
index ca74fe48..549a7da3 100644
--- a/txr.1
+++ b/txr.1
@@ -17046,6 +17046,31 @@ installations should use
.codn proper-listp ,
but its use going forward is deprecated.
+.coNP Function @ endp
+.synb
+.mets (endp << object )
+.syne
+.desc
+The
+.code endp
+function returns
+.code t
+if
+.meta object
+is the object
+.codn nil .
+
+If
+.meta object
+is a cons cell, then
+.code endp
+returns
+.codn t .
+
+Otherwise,
+.code endp
+function throws an exception.
+
.coNP Function @ length-list
.synb
.mets (length-list << list )