Anonymous user
Creating an Array: Difference between revisions
m
→{{header|Smalltalk}}: creation (move the rest to the other task)
(→{{header|Fortran}}: removed initializator (to array initialization), added some details (inspection too; maybe better somewhere else?)) |
m (→{{header|Smalltalk}}: creation (move the rest to the other task)) |
||
Line 701:
=={{header|Smalltalk}}==
<lang smalltalk>|array|
"creates an array that holds up to 20 elements"
array := Array new: 20 .
"access the first
(array at: 1) displayNl.
"put 100 as second value; you can put any object,
in particular SmallInteger"
=={{header|Tcl}}==
|