contains

trait Collection[A] {
  def contains(a: A): Boolean
}

contains checks whether a given value a equals (==) at least one element in this collection, returning true if so.

If no element is equal to that value then contains returns false.