summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2008-09-26 21:05:54 (GMT)
committerdgp <dgp@users.sourceforge.net>2008-09-26 21:05:54 (GMT)
commit11a39b96c6ee19beca3ef9583139c4a8377bcaa9 (patch)
treeac5ee07fdd2aa2dae014ee703f1ad89e20eb22d8 /doc
parent03fe58895ff5d2fff94410b80ecf3fd7907b7948 (diff)
downloadtcl-11a39b96c6ee19beca3ef9583139c4a8377bcaa9.zip
tcl-11a39b96c6ee19beca3ef9583139c4a8377bcaa9.tar.gz
tcl-11a39b96c6ee19beca3ef9583139c4a8377bcaa9.tar.bz2
TIP #323 IMPLEMENTATION (partial)
* doc/lrepeat.n: Revise [lrepeat] to accept both zero * generic/tclCmdIL.c: repetitions and zero elements to be repeated. * tests/lrepeat.test:
Diffstat (limited to 'doc')
-rw-r--r--doc/lrepeat.n15
1 files changed, 7 insertions, 8 deletions
diff --git a/doc/lrepeat.n b/doc/lrepeat.n
index 3088848..a8141e0 100644
--- a/doc/lrepeat.n
+++ b/doc/lrepeat.n
@@ -4,7 +4,7 @@
'\" See the file "license.terms" for information on usage and redistribution
'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.
'\"
-'\" RCS: @(#) $Id: lrepeat.n,v 1.6 2007/12/13 15:22:32 dgp Exp $
+'\" RCS: @(#) $Id: lrepeat.n,v 1.7 2008/09/26 21:05:57 dgp Exp $
'\"
.so man.macros
.TH lrepeat n 8.5 Tcl "Tcl Built-In Commands"
@@ -13,16 +13,15 @@
.SH NAME
lrepeat \- Build a list by repeating elements
.SH SYNOPSIS
-\fBlrepeat \fInumber element1 \fR?\fIelement2 element3 ...\fR?
+\fBlrepeat \fIcount \fR?\fIelement ...\fR?
.BE
.SH DESCRIPTION
.PP
-The \fBlrepeat\fR command creates a list of size \fInumber * number of
-elements\fR by repeating \fInumber\fR times the sequence of elements
-\fIelement1 element2 ...\fR. \fInumber\fR must be a positive integer,
-\fIelementn\fR can be any Tcl value. Note that \fBlrepeat 1 arg ...\fR
-is identical to \fBlist arg ...\fR, though the \fIarg\fR is required
-with \fBlrepeat\fR.
+The \fBlrepeat\fR command creates a list of size \fIcount * number of
+elements\fR by repeating \fIcount\fR times the sequence of elements
+\fIelement ...\fR. \fIcount\fR must be a non-negative integer,
+\fIelement\fR can be any Tcl value. Note that \fBlrepeat 1 element ...\fR
+is identical to \fBlist element ...\fR.
.SH EXAMPLES
.CS
\fBlrepeat\fR 3 a