Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
20 lines (14 sloc) 289 Bytes
function create_expression()
return Expr(:call, :*, :x, :y)
end
function create_function(expr)
return eval(Expr(:->,:(x,y), Expr(:block, expr)))
end
function main()
tst = create_expression()
f = create_function(tst)
x = 5
y = 6
println(f(x,y))
end
main()
You can’t perform that action at this time.