Type alias ReadOnlyIterator<Item, Return, Next>

ReadOnlyIterator<Item, Return, Next>: ReadOnly<Iterator<Item, Return, Next>>

Read-only Iterator.

Remarks

This is just an read-only alternative to Iterator to avoid unwanted mutations.

Type Parameters

  • Item = unknown

    Type of the items in the Iterator.

  • Return = void

    Type of the return value in the Iterator.

  • Next = void

    Type of the next value in the Iterator.