On Sun, Jul 26, 2015 at 10:16 AM, Cedric St-Jean
<[email protected]> wrote:
> Hello,
>
> What is the Julia equivalent of Common-Lisp ,@ ? Something like:
>
> l = :[a,b,c]
> :([1,2,3, $l..., 7,8,9])
>
> but the ... obviously don't work here, as they become part of the quoted
> expression. I want the result to be
>
> :([1,2,3, a, b, c, 7, 8, 9])
julia> l = [:a, :b, :c]
3-element Array{Symbol,1}:
:a
:b
:c
julia> :([1, 2, 3, $(l...), 4])
:([1,2,3,a,b,c,4])
>
> It is not mentioned in the manual.
I figured this out by trying. I'm not sure what is the exact rule but
yeah it worth mentioning in the manual.
>
> Cédric