padTo

trait Collection[A] {
  def padTo(m: Int, a: A): Collection[A]
}

padTo creates a copy of this collection and pads it to the right with the value a until some length m is reached.