Fuse returns an Iterator adapter that will keep yielding None after the underlying Iterator has yielded None once.
(it Iterator[T])
| 346 | // Fuse returns an Iterator adapter that will keep yielding None after the |
| 347 | // underlying Iterator has yielded None once. |
| 348 | func Fuse[T any](it Iterator[T]) Iterator[T] { |
| 349 | return &fuseIter[T]{ |
| 350 | inner: it, |
| 351 | done: false, |
| 352 | } |
| 353 | } |
| 354 | |
| 355 | func (it *fuseIter[T]) Next() Option[T] { |
| 356 | if it.done { |