drop()
Creates a slice of `array` with `n` elements dropped from the beginning.
Implementation
Args: array: List to process. n: Number of elements to drop. Defaults to ``1``. Returns: Dropped list.
Example
drop([1, 2, 3, 4], 2)
Expected output: [3, 4]
Source Code
def drop(array: List[T], n: int = 1) -> List[T]:
return array[n:]