clean way to accomplish -- if x in [(0, 1, 2), (2, 0, 1), (1, 2, 0)]:?
<p>If not, then a canonical name for a function? 'Cycle' makes sense to me, but that's taken.</p>

<p>The example in the header is written for clarity and brevity. Real cases I'm working with have a lot of repetition.
(e.g., I want [1, 1, 0, 0, 0, 2, 1] to "match" [0, 0, 2, 1, 1, 1, 0])</p>

<p>This type of thing is obscuring my algorithm and filling my code with otherwise useless repetition.</p>
