lua-users home
lua-l archive

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



Can you live with this:

	for k,v in pairs(tbl) do
		--
		if type(k)~="number" then
			...
		end
	end
	

16.12.2004 kello 07:59, Glenn Edgar kirjoitti:

 Hi

The source code indicates that a lua table consists of two parts, an array part and a hash table part. It also appears that ipairs iterates over the
array part and pairs iterates over both the array and hash table part.

If my understanding is correct, I would like to ask the following question.

What is the best way to iterate over the keys that are only in that hash table
part of the table?

Thanks for your help.

Glenn Edgar