Data update
This commit is contained in:
parent
81fd053722
commit
52a6ef48dd
10248 changed files with 63654 additions and 6775 deletions
23
Task/Quoting-constructs/Julia/quoting-constructs-7.jl
Normal file
23
Task/Quoting-constructs/Julia/quoting-constructs-7.jl
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue