Collections module for ESL
- Posted by Gordon Webster <gwalias-bb at yahoo.com> Jul 25, 2005
- 439 views
I would like to suggest a 'collections.e' module for the ESL. I think it would be extremely useful to have hash tables, sets, record tables etc. Hash tables would be implemented as sets of key/value pairs e.g. ... {"name","age","eye color",{"Joe Bloggs",54,"blue")) Sets would be sequences that could not contain duplicate values and would ignore attempts to 'append', 'prepend' or otherwise insert any duplicates values Record tables would be for large 'arrays' of identical records whose fields are designated by their position in the record (I use this kind of functionality very often, when a full DB solution would be overkill). They could look like this ... {"name","age","eye color",{{"Joe Bloggs",54,"blue"),{"Fred X",41,"green"} ... } Gordon