bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Associative array entries order differs from declaration


From: Greg Wooledge
Subject: Re: Associative array entries order differs from declaration
Date: Thu, 15 Aug 2019 11:32:00 -0400
User-agent: Mutt/1.10.1 (2018-07-13)

On Thu, Aug 15, 2019 at 05:26:03PM +0200, Léa Gris wrote:
> Is there a way to control the order of entries in an associative array?

No.

> What rules applies to the order of entries?

None.

If you require both an associative array and an ordered list, then you
will need two different data structures for that.  The ordered list may
be implemented as an indexed array, which preserves ordering.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]