lean2/tests/lua/threads/th1.lua

13 lines
137 B
Lua
Raw Normal View History

f = Const("f")
a = Const("a")
S = State()
T = thread(S, [[
t = ...
g = Const("g")
return g(t)
]], f(a))
r = T:wait()
print(r)