First page Back Continue Last page Overview Image
8.5 Data Structures – lrepeat
[136] lrepeat
Create a list of 1000 x’s
lrepeat 1000 x
Without ?
unset s; for {set i 0} {$i < 1000} {incr i} {lappend s {x}}
set s [split [string repeat x 1000] ""]
set s x[string repeat " x" 999]
Various penalties, memory and performance.