Module itertools::sources

source ·
Expand description

Iterators that are sources (produce elements from parameters, not from another iterator).



  • Creates a new iterator that infinitely applies function to value and yields results.
  • repeat_callDeprecated
    An iterator source that produces elements indefinitely by calling a given closure.
  • Creates a new unfold source with the specified closure as the “iterator function” and an initial state to eventually pass to the closure