endsWith

trait Collection[A] {
  def endsWith(as: Collection[A]): Boolean
}

endsWith checks whether the collection as is a suffix of this collection, returning true if so.

If as is not a suffix of this collection then this function returns false.