OrderedMap

version: 1.0.002
last update: 2010.09.15
requirements: actionscript 3 (fp 9+)
license: MIT

The OrderedMap library combines the indexed/ordered list capability of arrays with the associative/key-value behavior of dictionaries.  With OrderedMap, you get both array and dictionary functionality in one datatype with added functionality and power.

Features:

  • power: use as indexed, associative data structure or both
  • flexibilty: get value by key or index, get key by index or value and get index by key or value
  • remove by key, index or value

Never have to choose between array and dictionary data types just to have to change implementation and switch to the other later down the road again!

You can download the source, complete with examples, below.  And as always, please consider supporting this and other TheoryNine open-source projects by making a donation.

Download Now

Share:
  • Twitter
  • Digg
  • Yahoo! Buzz
  • Reddit
  • StumbleUpon
  • del.icio.us
  • Mixx
  • FriendFeed
  • Technorati
  • Facebook
  • RSS