Next: , Previous: , Up: Base classes   [Index]


1.147 RunArray

Defined in namespace Smalltalk
Superclass: OrderedCollection
Category: Collections-Sequenceable

My instances are OrderedCollections that automatically apply Run Length Encoding compression to the things they store. Be careful when using me: I can provide great space savings, but my instances don’t grant linear access time. RunArray’s behavior currently is similar to that of OrderedCollection (you can add elements to RunArrays); maybe it should behave like an ArrayedCollection.