push()
Appends values to the end of an array.
Implementation
This is a mutable operation on the array.
Example
push([1, 2], 3, 4)
Expected output: [1, 2, 3, 4]
Source Code
def push(array: List[T], *values: T) -> List[T]:
array.extend(values)
return array