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. 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.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Mon, 18 Nov 2024 04:43:58 GMT |