padTo

fun <T> MutableList<T>.padTo(size: Int, element: T)

Grows this list in place to size elements by appending element.

Does nothing when size is not greater than the current size, including when it is negative.