Moving queue contents

In reply to dave_59:

In reply to verif_learner:

Q2 = Q1;
Q1 = {};

Dave. Thanks.
Q = {}; is a good option for my case.
I can’t use Q2 = Q1 as Q2 may/may not contain elements already.