summaryrefslogtreecommitdiffstats
path: root/txr.1
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2019-06-25 06:51:17 -0700
committerKaz Kylheku <kaz@kylheku.com>2019-06-25 06:51:17 -0700
commit640a272f369406e7e433354959f4e8e53f68088f (patch)
tree31b52c1dcad424be956262741acdef3304eb59eb /txr.1
parent3ef45acb19c1df4f58b5fb2f2b289f6b8a923fd6 (diff)
downloadtxr-640a272f369406e7e433354959f4e8e53f68088f.tar.gz
txr-640a272f369406e7e433354959f4e8e53f68088f.tar.bz2
txr-640a272f369406e7e433354959f4e8e53f68088f.zip
seqp: expand definition of sequences.
* lib.c (seqp): Use seq_info to classify the object as a sequence. * txr.1: Update description of seqp.
Diffstat (limited to 'txr.1')
-rw-r--r--txr.117
1 files changed, 16 insertions, 1 deletions
diff --git a/txr.1 b/txr.1
index a7df3a1f..7b640f76 100644
--- a/txr.1
+++ b/txr.1
@@ -27715,11 +27715,26 @@ if
is a sequence, otherwise
.codn nil .
-A sequence is defined as a list, vector or string. The object
+Lists, vectors and strings are sequences. The object
.code nil
denotes
the empty list and so is a sequence.
+Objects of type
+.code buf
+and
+.code carray
+are sequences, as are hash tables.
+
+Structures which implement the
+.code length
+or
+.code car
+methods are considered sequences.
+
+No other objects are sequences. However, future revisions of
+the language may specify additional objects that are sequences.
+
.coNP Functions @ length and @ len
.synb
.mets (length << object )