Extend previous with colours for labels (in the given order) and return the new assignment. previous is not mutated.
previous
labels
Optional
Extend
previouswith colours forlabels(in the given order) and return the new assignment.previousis not mutated.