If the number is negative take the last n numbers of the sequence, which is
effectively the same as drop(length - n) if you know the length of the
length of the iterator.
Note: Asking for the last items in an async iterator requires the whole
iteration to finish before we emit the first item. This will create a lag
between when the item was first emitted until it will pass through this
operator.
Note: because the length of the iterator is not known—if you use negative
index the entire iterator has to be consumed before yielding the first item.
This can result in an infinite loop if the iterator is indefinite.
Take a specific number of items from the front sequence and drop the rest.
If the number is negative take the last
nnumbers of the sequence, which is effectively the same asdrop(length - n)if you know the length of the length of the iterator.Note: Asking for the last items in an async iterator requires the whole iteration to finish before we emit the first item. This will create a lag between when the item was first emitted until it will pass through this operator.
Note: because the length of the iterator is not known—if you use negative index the entire iterator has to be consumed before yielding the first item. This can result in an infinite loop if the iterator is indefinite.
See also: