summaryrefslogtreecommitdiffstats
path: root/doc/lrepeat.n
diff options
context:
space:
mode:
Diffstat (limited to 'doc/lrepeat.n')
-rw-r--r--doc/lrepeat.n26
1 files changed, 11 insertions, 15 deletions
diff --git a/doc/lrepeat.n b/doc/lrepeat.n
index cd672db..848255b 100644
--- a/doc/lrepeat.n
+++ b/doc/lrepeat.n
@@ -1,9 +1,9 @@
'\"
-'\" Copyright (c) 2003 Simon Geard. All rights reserved.
+'\" Copyright (c) 2003 by Simon Geard. All rights reserved.
'\"
'\" See the file "license.terms" for information on usage and redistribution
'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.
-'\"
+'\"
.TH lrepeat n 8.5 Tcl "Tcl Built-In Commands"
.so man.macros
.BS
@@ -11,15 +11,16 @@
.SH NAME
lrepeat \- Build a list by repeating elements
.SH SYNOPSIS
-\fBlrepeat \fIcount \fR?\fIelement ...\fR?
+\fBlrepeat \fInumber element1 \fR?\fIelement2 element3 ...\fR?
.BE
.SH DESCRIPTION
.PP
-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.
+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.
.SH EXAMPLES
.CS
\fBlrepeat\fR 3 a
@@ -32,12 +33,7 @@ is identical to \fBlist element ...\fR.
\fI\(-> {a a} b c {a a} b c {a a} b c\fR
.CE
.SH "SEE ALSO"
-list(n), lappend(n), lassign(n), ledit(n), lindex(n), linsert(n), llength(n),
-lmap(n), lpop(n), lrange(n), lremove(n), lreplace(n),
-lreverse(n), lsearch(n), lseq(n), lset(n), lsort(n)
+list(n), lappend(n), linsert(n), llength(n), lset(n)
+
.SH KEYWORDS
element, index, list
-'\" Local Variables:
-'\" mode: nroff
-'\" fill-column: 78
-'\" End: