title: Python Numba Value in Array
body: <p>I am trying to check if a number is in NumPy array of <code>int8</code>s. I tried this, but it does not work.</p>
  
  <pre><code>from numba import njit
  import numpy as np
  
  @njit
  def c(b):
      return 9 in b
  
  a = np.array((9, 10, 11), 'int8')
  print(c(a))
  </code></pre>
  
  <p>The error I get is</p>
  
  <pre><code>Invalid use of Function(&lt;built-in function contains&gt;) with argument(s) of type(s): (array(int8, 1d, C), Literal[int](9))
   * parameterized
  In definition 0:
      All templates rejected with literals.
  In definition 1:
      All templates rejected without literals.
  In definition 2:
      All templates rejected with literals.
  In definition 3:
      All templates rejected without literals.
  In definition 4:
      All templates rejected with literals.
  In definition 5:
      All templates rejected without literals.
  This error is usually caused by passing an argument of a type that is unsupported by the named function.
  [1] During: typing of intrinsic-call at .\emptyList.py (6)
  </code></pre>
  
  <p>How can I fix this while still maintaining performance?
  The arrays will be checked for two values, 1 and -1, and are 32 items long. They are not sorted.</p>