head

trait Collection[A] {
  def head: A
}

head returns the first element of this collection.

On empty collections this function throws a NoSuchElementException exception.