Jump to content

Module:table/iterateList

From Wiktionary, the free dictionary


local ipairs = ipairs

--[==[
An iterator which works like {ipairs()}, but which only returns the value.]==]
return function(t)
	local iter, state, k, v = ipairs(t)
	return function()
		k, v = iter(t, k)
		return v
	end
end