RosettaCodeData/Task/Runtime-evaluation/Lua/runtime-evaluation-1.lua

6 lines
191 B
Lua

f = loadstring(s) -- load a string as a function. Returns a function.
one = loadstring"return 1" -- one() returns 1
two = loadstring"return ..." -- two() returns the arguments passed to it