maxOption

trait Collection[A] {
  def maxOption: Option[A]
}

maxOption returns the largest value in this collection wrapped with Some.

On empty collections this function returns None.