Skip to content
Permalink
139d8af0c9
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
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()