Array Initialization: Difference between revisions

m
remove Tcl
(Task in process of move should not be a task)
m (remove Tcl)
Line 480:
"Replace apple with orange"
array at: 2 put: 'orange'.</lang>
 
=={{header|Tcl}}==
{{works with|Tcl|8.5}}
<br>
Arrays in Tcl are known as lists.
<lang tcl>package require Tcl 8.5
 
set l [list a list with five elements]
set l1 [lrepeat 3 x] ;# => x x x
set l2 [lrepeat 3 [lrepeat 2 0]] ;# => {0 0} {0 0} {0 0}</lang>
 
{{omit from|gnuplot}}
Anonymous user