lua-users home
lua-l archive

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


Return the keys in a table (any order):

```
local function list_keys(t, ...)
    if next(t, (...)) then
        return list_keys(t, next(t, (...)), ...)
    else
        return ...
    end
end
```


--Andrew