lrepeat
Creates a list by repeating a sequence of values a specified number of times.
Syntax
tcl
lrepeat count ?value ...?Parameters
- count: Number of times to repeat the values (must be non-negative)
- value: Zero or more values to repeat
Examples
Repeat single value
Output
Repeat multiple values
Output
Create initialized list
Output
Build pattern sequence
Output
Zero repetitions
Output
