When writing a generated function, I can do it like this:
julia> pp = Any[:(1+2),:(3+4)]
2-element Array{Any,1}:
:(1 + 2)
:(3 + 4)
julia> Expr(:tuple, pp...)
:((1 + 2, 3 + 4))
but is there a way without Expr
?
When writing a generated function, I can do it like this:
julia> pp = Any[:(1+2),:(3+4)]
2-element Array{Any,1}:
:(1 + 2)
:(3 + 4)
julia> Expr(:tuple, pp...)
:((1 + 2, 3 + 4))
but is there a way without Expr
?
julia> :(($(pp...),))
:((1 + 2, 3 + 4))
Seems to work with just
:($(pp...),)