Drop returns an Iterator adapter that drops the first n elements from the underlying Iterator before yielding any values.
(it Iterator[T], n uint)
| 199 | // Drop returns an Iterator adapter that drops the first n elements from the |
| 200 | // underlying Iterator before yielding any values. |
| 201 | func Drop[T any](it Iterator[T], n uint) Iterator[T] { |
| 202 | return &dropIter[T]{ |
| 203 | inner: it, |
| 204 | drop: n, |
| 205 | } |
| 206 | } |
| 207 | |
| 208 | func (it *dropIter[T]) Next() Option[T] { |
| 209 | v := None[T]() |