laziness, impatience, and hubris | |
PerlMonks |
Re^6: What makes an array sorted and a hash unsorted?by ikegami (Patriarch) |
on Jun 01, 2009 at 18:12 UTC ( [id://767344]=note: print w/replies, xml ) | Need Help?? |
So hashes aren't ordered because the following doesn't work?
I guess arrays aren't ordered either, then.
Order has to be imposed externally on the data in the case of arrays too. It's just there's a convenient way of doing that when the keyspace isn't sparse (namely, the range operator).
In Section
Meditations
|
|