|
|
Darren New wrote:
> Kevin Wampler wrote:
>> I'm actually not sure what to expect here.
>
> Note that the "First Text" and "Second Text" keys stay in order, for
> example. I think it's pretty useful for things like representing stuff
> like XML, where you might want keys for the "id" field, but you also
> want to know what order the tags were in in the source file.
Ahh, yeah, that's exactly the sort of use case I was looking for.
> It looks like inserting something without an index puts it at the end of
> the array with an index one higher than the biggest integer index.
> Inserting something with an index overwrites what's at that index, or
> adds it to the end if the index doesn't already exist.
Good to know. Thanks!
Post a reply to this message
|
|