find

trait Collection[A] {
  def find(p: (A) => Boolean): Option[A]
}

find returns the first element that satisfy the predicate p, wrapped with Some.

If no element in this collection satisfy p then this function returns None.