lua-users home
lua-l archive

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


Am So., 22. Okt. 2023 um 12:09 Uhr schrieb Hans van der Meer
<havdmeer@ziggo.nl>:
>> But why isn't there a kpairs() for the record keys? I think it would make some programs easier, especially where the >relevant pairs() function is passed to another function.

if you request something like this, it might be interesting to know
WHY you are especially interested in this.

This would be mainly useful in a table with VERY many indices, but
only few further records... but in such case you could also could
consider to spend a further table just for the "further records"
(sometimes it is NOT so nice to cook all in one bowl :) ).