is there a single command to determine if a variable is part of a defined set
<p>Kind hard to word the question, but for example, say I want something like: </p>

<pre><code>int x = 5;
int z[] = {1,12,22,56};

if ((x==z[0]) || (x==z[1]) || (x==z[2]) || (x==z[3])) {
     [self fooOnYou:x]
}
</code></pre>

<p>Is there a cleaner or more elegant way to do this?</p>
