Converts a function f into binary representation, which can be subsequently processed by loadstring to retrieve the function. The function must be a Lua function without upvalues.
function f () print "hello, world" end
s = string.dump (f)
assert (loadstring (s)) () --> hello, world