Mathematica 10 has introduced Associations, elsewhere known as hash tables or dictionaries. Is there Ordered equivalent like in Python, Java, .NET? The data structure should remember the order in which key-value is inserted.
https://docs.python.org/2/library/collections.html
http://docs.oracle.com/javase/6/docs/api/java/util/LinkedHashMap.html
Association
doc page. One can sort of figure this out by the fact that one can usePart
with numerical indices on associations, but such fundamental property should be mentioned explicitly. I will file a suggestion report. $\endgroup$Sort
andKeySort
return sorted associations (and that's documented behavior). That wouldn't make any sense if associations were unordered. $\endgroup$