lastIndexOf

trait Collection[A] {
  def lastIndexOf(a: A): Int
  def lastIndexOf(a: A, j: Int): Int
}

lastIndexOf returns the index of the last element that equals (==) the value a.

The search can start at the given offset j.

If no element equals a then this function returns -1.