Damien Neil <[EMAIL PROTECTED]> writes: > Arrays are ordered. Hashes are not. Sure, you can iterate over a hash, > but add an element to one and you can change the order of everything in > it. Formally, I believe it's permissable for a hash implementation to return a different order the second time you iterate through it from the first time, even if you haven't touched the hash inbetween. That's the definition of an iterable but unordered data structure; there's some way of getting all of the members one and only one time, but each time you look at it the order in which the members show up may be different (maybe garbage collection happened behind the scenes, the hash was reorganized due to an observation of how you were using it, etc.). -- Russ Allbery ([EMAIL PROTECTED]) <http://www.eyrie.org/~eagle/>
- Re: RFC 84 (v1) Replace => (string... Karl Glazebrook
- Re: RFC 84 (v1) Replace => (string... Chaim Frenkel
- Hashes vs arrays (was Re: RFC 84 (v1)... Jeremy Howard
- Re: RFC 84 (v1) Replace => (stringifyi... Nathan Torkington
- Re: RFC 84 (v1) Replace => (string... John Porter
- Re: RFC 84 (v1) Replace => (string... Jonathan Scott Duff
- Re: RFC 84 (v1) Replace => (stringifying c... Stephen P. Potter
- Re: RFC 84 (v1) Replace => (stringifyi... Nathan Torkington
- Re: RFC 84 (v1) Replace => (string... Kai Henningsen
- Re: RFC 84 (v1) Replace => (stringifyi... Damien Neil
- Re: RFC 84 (v1) Replace => (string... Russ Allbery
- Re: RFC 84 (v1) Replace => (string... Stephen P. Potter
- Re: RFC 84 (v1) Replace => (string... Ariel Scolnicov
- Re: RFC 84 (v1) Replace => (string... Russ Allbery
- Re: RFC 84 (v1) Replace => (string... Uri Guttman
- Re: RFC 84 (v1) Replace => (stringifyi... Dan Sugalski
- Re: RFC 84 (v1) Replace => (stringifyi... John Porter
- Re: RFC 84 (v1) Replace => (stringifying comma) wit... Jeremy Howard
- Re: RFC 84 (v1) Replace => (stringifying comma... Jarkko Hietaniemi
- Array storage (was Re: RFC 84 (v1) Replace =&... Jeremy Howard
- Re: Array storage (was Re: RFC 84 (v1) Re... Jarkko Hietaniemi