Module itertools::sources

source ·
Expand description

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

Structs§

  • An iterator that infinitely applies function to value and yields results.
  • UnfoldDeprecated
    See unfold for more information.

Functions§

  • Creates a new iterator that infinitely applies function to value and yields results.
  • unfoldDeprecated
    Creates a new unfold source with the specified closure as the “iterator function” and an initial state to eventually pass to the closure