A simple assignment like
workSet = masterSet;
should be enough on most implementations.