Hi everyone. 

Suppose I have the array called a. And I need to check all of its ellements 
on the some condition. Further, I need to remove those ellements which 
satisfy the condition. I know I can do this using operator 'while'. 
Something like this:

i = 0
while (i < length(a))
i = i + 1
if (condition on a[i])
splice!(a, i)
i = i - 1
end
end

But I've heard that using operator 'while' is quite slower than using 
'for'-loop. So is there any better way to do what I need to do?

Sorry for bad English. Thank you in advance.

Reply via email to