Ask a question to get started
Enter to send•Shift+Enter new line
Drop the last n elements of an iterator.
n
droplastn( iter: Iterator[T], n: int, ) -> Iterator[T]
iter
Iterator[T]
The iterator to drop elements from.
int
The number of elements to drop.