3 ms·
That function is valid Lua.
by alec 17y ago
That function is valid Lua.
- silentbicycle 17y agoNo, the curly braces have a different meaning (lists and tables, what JavaScript calls "object literals"). In Lua, it'd be function sum(a,b) return a+b end Close, though. (The semicolon is optional, and typically only used with multiple statements on one line.)