Let's say I have two lists, X, Y.
X = {limegreen, forestgreen, seagreen}, Y = {babyblue, navyblue, ultramarineblue}
And I have the elements $d_0, d_1, d_2, ..., d_n$. I want it so no two consecutive elements are from the same set.
I know I can do: For every $d_i, d_{i+1}$, if $d_i \in X$, then $d_{i+1} \in Y$ for $i \geq 0$.
But is there a better way to do this?