lua-users home
lua-l archive

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


2018-03-15 14:09 GMT+02:00 Soni "They/Them" L. <fakedme@gmail.com>:

> Tables don't shrink. They only grow.

When you add a new element, the array part may be shrunk.

"The actual size of the array is the largest 'n' such that more than
half the slots between 1 and n are in use."