From 73bcd69a66e50e08bace63cc2392803fd991f6f0 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Thu, 27 Feb 2014 07:52:02 -0800 Subject: * 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. --- txr.1 | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) (limited to 'txr.1') 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 . 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 ) + +.TP +Description: + +The length function returns the number of items in , and +returns it. + +.SS Function copy + +.TP +Syntax: + + (copy ) + +.TP +Description: + +The copy function duplicates a sequence. If is nil, it +returns nil. If is a list, it returns (copy-list ); +if is a string, it returns (copy-str ); and +if is a vector, it returns (copy-vec ). + .SS Function sub .TP -- cgit v1.2.3