isDefinedAt

For the Map's isDefinedAt function go here.

trait Seq[A] {
  def isDefinedAt(i: Int): Boolean
}

isDefinedAt checks whether a Seq contains any element at a given index i, returning true if so.

When there is no element defined at index i this function returns false.