Just because you are calling two functions doesn't mean it is slow. Have you benchmarked?
On Sunday, September 18, 2016 at 11:55:47 AM UTC+2, K leo wrote: > > I have been using simply A=[0; A[1:end-1]], but found it to be somehow > quite expensive. I saw that there is unshift! but it has to be followed up > with deleteat! to make the array the same size, i.e. there need to be two > operations. So how can I get a better performance doing the shift? >