5 ms·
There's the length operator (https://www.lua.org/manual/5.3/manual.html#3.4.7 https://www.lua.org/manual/5.3/manual.html#3.4.7): #sometable returns the length o
by gvx 8y ago
There's the length operator (https://www.lua.org/manual/5.3/manual.html#3.4.7 https://www.lua.org/manual/5.3/manual.html#3.4.7): #sometable returns the length of the sometable if it is a sequence, and has an upper bound of O(log(N)).