dropRight

trait Collection[A] {
  def dropRight(i: Int): Collection[A]
}

dropRight creates a collection by discarding the last i elements of this collection and keeping the rest.