Code: Select all
if type(foo) == "boolean" then print("bool") elseif type(foo) == "string" then print("str") end
Code: Select all
if type(foo) == "boolean" then print("bool") elseif type(foo) == "string" then print("str") end
Code: Select all
dyld: Library not loaded: libluajit.so
Code: Select all
local len = math.sqrt(x*x + y*y)
Code: Select all
time: 4.746087
time: 8.156244
Code: Select all
time: 3.405954
time: 6.183561