I recently discovered you can use pairs to do something like this:
local a = pairs({"a","b","c"})
print(a({-1}))
But this doesn’t really seem to do anything or be useful for anything as it just prints whatever i put as the first value in the table (-1 in this case).
There’s not really any reason to use pairs directly (or at all, you don’t need it to loop over tables anymore).
You can use next to do something similar: next({ "a", "b", "c" }) will return 1, "a", and next({ a = "b" }) will return "a", "b". This is useful for checking if a table is empty.