title: Checking if one element is equal to any element in a list in OCaml?
body: <p>So what I have this list of ints, let's say it is </p>
  
  <pre><code>let a = [14, 22, 47] in
  </code></pre>
  
  <p>And what I want to do is check if some other identifier is equal to ANY of the elements in the list. I could obviously do: </p>
  
  <pre><code>if (x = 14 || x = 22 || x = 47) then do something
  </code></pre>
  
  <p>but this seems cumbersome for bigger lists. Is there an easier way in OCaml? I know Python has the "in" operator. </p>