A Multi-dictionary for Pharo Smalltalk
Greetings everyone. We are moving forward to make new collections for Pharo. I decided to start with Multi-dictionary as the easiest one from the collection list, which was suggested by Stephan Ducasse.
2. The idea of Multi-dictionary
As you can understand from name of this collection, the multi-dictionary is dictionary which stores a pairs which looks like "key - array of values".
3. What we've done so far
3.1. The interface
For now, multi-dictionary have a three methods:
add:- takes an
associationobject as an argument and adds it to a multi-dictionary
at: put:- puts a value for a specified key.
at:- returns a values, associated with key.
3.2. Examples of usage
4. Some kind of conclusion
As you can see, right now we have a very basic prototype of multi-dictionary. Together we can make it much more better. So, now i need you help. Feel free to make a comments with your suggestions about multi-dictionary functionality. As a development procces goes, i will update this post to bring you the latest features of my collections. The latest version of multi-dictionary is available for download and experiment on my project page in a package called New Collections.