|
Hi,
what would be the equivalent of an OrderedSet?
1. all elements are unique
2. they are ordered
3. adding an existing element moves it
so
myOrderedSet addLast: x. "<- x is added as last"
myOrderedSet addFirst: x. "<- x is moved from last to first"
Thanks,
--
Peter
|