Is there a more readable way to write for k, v in pairs(my_table) do … end in lua if I never use k?
snippet in lua

Is there a more readable way to write for k, v in pairs(my_table) do … end in lua if I never use k?

user1203

function values(t)
  local k, v
  return function()
    k, v = next(t, k)
    return v
  end
end