Skip to main content
since when did lua let you omit parentheses
Source Link
Someone
  • 545
  • 2
  • 11

Lua, 5454 43 bytes

The one time the Lua submission is actually short!

…so yeah, it's another "just overload the operator" situation. Props to h for being a free nil value, since Lua considers almost everything truthy.

-11 bytes by Adamátor

a=a=setmetatable({}b=0setmetatable(a,{__band=function()return h end__band=loadstring""})b=0 

Try it online!

Lua, 54 bytes

The one time the Lua submission is actually short!

…so yeah, it's another "just overload the operator" situation. Props to h for being a free nil value, since Lua considers almost everything truthy.

a={}b=0setmetatable(a,{__band=function()return h end}) 

Try it online!

Lua, 54 43 bytes

The one time the Lua submission is actually short!

…so yeah, it's another "just overload the operator" situation.

-11 bytes by Adamátor

a=setmetatable({},{__band=loadstring""})b=0 
Source Link
Someone
  • 545
  • 2
  • 11

Lua, 54 bytes

The one time the Lua submission is actually short!

…so yeah, it's another "just overload the operator" situation. Props to h for being a free nil value, since Lua considers almost everything truthy.

a={}b=0setmetatable(a,{__band=function()return h end}) 

Try it online!