Anonymous user
Creating an Array: Difference between revisions
m
→Tcl: fix lang tag
m (→[[Creating an Array#ALGOL 68]]: fix lang tag) |
m (→Tcl: fix lang tag) |
||
Line 907:
lrepeat can be used to create multidimensional lists
<lang tcl>set a [lrepeat 4 [lrepeat 2 0]] ;# {{0 0} {0 0} {0 0} {0 0}}</lang>
Tcl does have an "<tt>array</tt>", though, which is really an "associative array":
|