Skip to content

GsDevKit/OrderPreservingDictionary

 
 

Repository files navigation

Order Preserving Dictionary

Build Status Coverage Status

Installation

Metacello

Metacello new
	baseline: 'OrderPreservingDictionary';
	repository: 'github://GsDevKit/OrderPreservingDictionary:gemstone/filetree';
	load.

tODE command line

project install --url=http://gsdevkit.github.io/GsDevKit_home/OrderPreservingDictionary.ston
project load OrderPreservingDictionary

Usage

OrderPreservingDictionary preserves the order in which elements were added to to it.

Basic Dictionary

(dict := Dictionary new)
	at: #apple put: 20;
	at: #orange put: 15.

dict keys. "#(#orange #apple)"

OrderPreservingDictionary

(dict := OrderPreservingDictionary new)
	at: #apple put: 20;
	at: #orange put: 15.

dict keys. "#(#apple #orange)"

About

a little preserving dictionary ... GemStone port

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Smalltalk 100.0%