summaryrefslogtreecommitdiffstats
path: root/txr.1
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2014-02-27 07:52:02 -0800
committerKaz Kylheku <kaz@kylheku.com>2014-02-27 07:52:02 -0800
commit73bcd69a66e50e08bace63cc2392803fd991f6f0 (patch)
tree29382e5ac47bddfe93d2b49e84d90c5d0fc27965 /txr.1
parent66858a6c861796b58b51cdc1f0a125621ec1b376 (diff)
downloadtxr-73bcd69a66e50e08bace63cc2392803fd991f6f0.tar.gz
txr-73bcd69a66e50e08bace63cc2392803fd991f6f0.tar.bz2
txr-73bcd69a66e50e08bace63cc2392803fd991f6f0.zip
* lib.c (copy): New function.
* lib.h (copy): Declared. * eval.c (eval_init): Registered copy function as intrinsic. * txr.1: Added missing documentation for length. Documented copy.
Diffstat (limited to 'txr.1')
-rw-r--r--txr.128
1 files changed, 27 insertions, 1 deletions
diff --git a/txr.1 b/txr.1
index 1aa82bb6..243e0c93 100644
--- a/txr.1
+++ b/txr.1
@@ -9355,10 +9355,36 @@ produces a catenation of the vectors listed in <vec-list>. It returns
a single large vector formed by catenating those vectors together in
order.
-.SH GENERIC SEQUENCE OPERATIONS
+.SH SEQUENCE MANIPULATION
.SS Function length
+.TP
+Syntax:
+
+ (length <sequence>)
+
+.TP
+Description:
+
+The length function returns the number of items in <sequence>, and
+returns it.
+
+.SS Function copy
+
+.TP
+Syntax:
+
+ (copy <sequence>)
+
+.TP
+Description:
+
+The copy function duplicates a sequence. If <sequence> is nil, it
+returns nil. If <sequence> is a list, it returns (copy-list <sequence>);
+if <sequence> is a string, it returns (copy-str <sequence>); and
+if <sequence> is a vector, it returns (copy-vec <sequence>).
+
.SS Function sub
.TP