Hm. Sounds like you're trying to start YAPS (Yet Another Perl Shibboleth). You'll excuse me if I do not wish you well with that.
because, (to the best of my very limited Lisp knowledge), neither can perform the fundamental operation of both associative arrays and hashtables: that of random access of values by key.
To the best of my knowledge, access to both is strictly sequential from the head.
because associative array is an abstract datatype defined in terms of its operations. It can be implemented many different ways.
You are conflating the order in which the data is accessed when iterated, with the ordering of the data itself.
And when they do, its for the wrong reasons. As LW is reputed to have said: "iterating over the keys of a hash is like clubbing someone to death with a loaded Uzi".
If you iterate an array in ascending index order; shuffle the contents and again iterate by ascending index, the data (values) will be differently ordered.
The hash seed does not determine the order of iteration. That is (and remains) the sequentially ascending sequence of the bucket array (with diversions for non unitary buckets), just as for arrays.
The hash seed simply determines which bucket the key/value pair is mapped to. Ie. It affects insertion not traversal.
In reply to Re^4: Associative array
by BrowserUk
in thread Associative array
by gem555
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |