destack.sh
docstemplatesblog
Language
  1. Setup
  2. TypeScript
  3. TypeScript++
  4. Runtime
  5. Standard Library
  6. Web
  7. Node
  8. Systems
  9. Modules
  10. destack:iter
  11. Iterator
    1. Members
  12. Configuration
  13. Static Analysis
  14. Dynamic Analysis
  15. Deployment
menu
Language
  1. Setup
  2. TypeScript
  3. TypeScript++
  4. Runtime
  5. Standard Library
  6. Web
  7. Node
  8. Systems
  9. Modules
  10. destack:iter
  11. Iterator
    1. Members
  12. Configuration
  13. Static Analysis
  14. Dynamic Analysis
  15. Deployment
Docs/Language/Standard Library/Modules/destack:iter
mdtxt

Iterator

import { Iterator } from "destack:iter";

A protocol for producing a sequence of values.

language/library/src/iter/iterator.ds:31:34
1export newtype interface Iterator<T, R = void> {2    next(): IteratorResult<T, R>;3}

Members

next(): IteratorResult<T, R>

Advance and return the next yield or completion.

discordxgithub
2026.8.3alpha