diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2014-02-27 07:52:02 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2014-02-27 07:52:02 -0800 |
commit | 73bcd69a66e50e08bace63cc2392803fd991f6f0 (patch) | |
tree | 29382e5ac47bddfe93d2b49e84d90c5d0fc27965 /txr.1 | |
parent | 66858a6c861796b58b51cdc1f0a125621ec1b376 (diff) | |
download | txr-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.1 | 28 |
1 files changed, 27 insertions, 1 deletions
@@ -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 |