[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Looping through an array with FOR EACH
[Thread Prev] | [Thread Next]
- Subject: Re: Looping through an array with FOR EACH
- From: Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
- Date: Sat, 17 Jan 2026 14:48:06 +0100
- To: user@xxxxxxxxxxxxxxxxxxxxxx
Le 17/01/2026 à 14:41, Gianluigi a écrit :
Hi Benoit, So collections also guarantee insertion order. Also because you can only add, right?
No. As I explaines, the order comes from a specific feature added to the hash table. This feature is not mandatory for a hash table to be a hash table. I added it because it allows to use the hash table both as a hash table and a rudimentory ordered list. But it has a cost: 16 bytes by element!
Speaking of adding, there was a mistake in the example (Add) that I took the liberty of correcting.
You are welcome. -- Benoît Minisini.
| Re: Looping through an array with FOR EACH | Gianluigi <gradobag@xxxxxxxxxxx> |