last

trait Collection[A] {
  def last: A
}

last returns the last element in this collection.

On empty collections this function throws a NoSuchElementException exception.