RosettaCodeData/Task/Runtime-evaluation/Lua/runtime-evaluation-1.lua
2023-07-01 13:44:08 -04:00

5 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