Squeak
  links to this page:    
View this PageEdit this PageUploads to this PageHistory of this PageTop of the SwikiRecent ChangesSearch the SwikiHelp Guide
Array
Last updated at 12:12 pm UTC on 6 August 2013
Array is a subclass of ArrayedCollection

An array is basically an integer keyed collection and offers numerous operations for accessing and manipulating the stored values. The size of an array must be defined at its initialisation.
a:= Array new:10.
b:= #(7 5).

a size.->10
b size.->2

a at:1 put:4.
a.-> #(4 nil nil nil nil nil nil nil nil nil)

a first.->4
a last.->nil