src/pylib/collections_abc/generators

Search:
Group by:
Source   Edit  

Types

Generator[YieldType; SendType; ReturnType] = concept selfof Iterator[YieldType]
    try:
      self.send(SendType) is YieldType
    except StopIterationT[ReturnType]:
      discard
    self.throw(CatchableError)
type( (def _(): yield)() ) Source   Edit  

Procs

proc close(self: Generator)
Source   Edit  
proc next[T; R](self: Generator[T, NoneType, R]): T {.inline.}
Source   Edit  

Templates

template iter[T; S; R](self: Generator[T, S, R]): Iterator[T]
Source   Edit