merge two sorted arrays in julia
<p>Is there a neat function in julia which will merge two sorted arrays and return the sorted array for me? I have written:</p>

<pre><code>c=1
p=1
i=1
n=length(tc)+length(tp)
t=Array{Float64}(n)
while(c&lt;=length(tc) &amp;&amp; p&lt;=length(tp))
    if(tp[p]&lt;tc[c])
        t[i]=tp[p]
        p=p+1;
        i=i+1;
    else
        t[i]=tc[c]
        c=c+1;
        i=i+1;
    end
end
while(p&lt;=length(tp))
    t[i]=tp[p]
    i=i+1
    p=p+1
end
while(c&lt;=length(tc))
    t[i]=tc[c]
    i=i+1
    c=c+1
end
</code></pre>

<p>but is there no native function in base julia to do this?</p>