2 unstable releases

new 0.2.0 Feb 16, 2025
0.1.0 Dec 11, 2024

#848 in Algorithms

MIT license

24KB
660 lines

Extended Iterators

Some useful extensions to rust's iterators.

Modules

  • buffered: Maintains a buffer of items in memory.
  • interleave: Interleaves two iterators.
  • logging: Unwraps Result items, debug printing any errors.
  • stateful: Maps a function to items, but allows passing a struct to be used as "working" state. Eg. when the function needs to allocate a lot of memory to compute intermediate values.
  • threaded: Multi-threaded map that maintains the ordering of items in the iterator.
  • stateful_threaded: Combination of the stateful and threaded modules.
  • bucket: Buckets an iterator into several vectors based on a condition function.

No runtime deps