Dollar
Dollar copied to clipboard
Proposal: Array's fullfill function
func fullfill(element: Any, count: Int) {
}
let a = [1, 2, 3, 4]
a.fullfill(0, 2) // [1, 2, 3, 4, 0, 0]
fullfill will extend the array with several numbers of elements.
So this function just appends the element, n times towards the end of the array?