src/pylib/builtins/iter_next

Source   Edit  

builtins.iter

Types

PyIterator[T] = ref object
Source   Edit  
StopIteration = object of CatchableError
Source   Edit  

Procs

func iter[T](x: Iterable[T]): PyIterator[T]
Source   Edit  
func iter[T](x: Iterator[T]): PyIterator[T]
Source   Edit  
func newPyIterator[T](it: iterator (): T): PyIterator[T]
init with a Nim iterator Source   Edit  
proc next[T](self: PyIterator[T]): T
Source   Edit  
proc nextImpl[T](self: PyIterator[T]): Option[T] {.inline.}
EXT. Get rid of exception for faster iteration. Source   Edit  
proc nextImpl[T](self: PyIterator[T]; res: var T): bool {.inline.}
EXT. Get rid of exception for faster iteration. Source   Edit  

Iterators

iterator items[T](self: PyIterator[T]): T
Source   Edit