Your example doesn't hold water, size_t is unsigned so the test condition would never be met.
Re:What's New in Lua 5.4
by anonymoushn on Thursday July 16, 2020 @03:28AM
(#23856685)
It works. https://repl.it/repls/TanWeeOctal
You mean the awkwardness of humans using "kth" to refer to element number k-1?
0: /sarcasm