![]() |
Smalltalk/X WebserverDocumentation of class 'AutoResizingOrderedCollectionWithDefault': |
|
Class: AutoResizingOrderedCollectionWithDefaultInheritance:Object | +--Collection | +--SequenceableCollection | +--OrderedCollection | +--AutoResizingOrderedCollection | +--AutoResizingOrderedCollectionWithDefault
Description:I am an ordered collection which automatically resizes if elements are added beyond the size. I.e. if #at:put: is sent for indexes > the current size, the receiver grows to the required index and missing fields are implicitly filled with a default value. Queries for non-existing elements are anwered with the default value. Related information:OrderedCollection Array SparseArray Instance protocol:accessing
Examples:|coll| coll := AutoResizingOrderedCollectionWithDefault newWithDefaultValue:99. coll at:4 put:'four'. coll at:8 put:'eight'. coll at:9 |
|
ST/X 7.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Sun, 04 Jun 2023 07:29:19 GMT
|