RosettaCodeData/Task/Quoting-constructs/Julia/quoting-constructs-7.julia
2023-07-01 13:44:08 -04:00

23 lines
206 B
Text

julia> a = :+
:+
julia> typeof(a)
Symbol
julia> b = quote + end
quote
#= REPL[3]:1 =#
+
end
julia> typeof(b)
Expr
julia> eval(a) == eval(b)
true
julia> c = :(2 + 3)
:(2 + 3)
julia> eval(c)
5