resize

inline fun <T> Array<T>.resize(newSize: Int, creator: (Int) -> T): Array<T?>