2 unstable releases

0.2.0 Feb 16, 2025
0.1.0 Dec 11, 2024

#818 in Algorithms

Download history 152/week @ 2024-12-11 5/week @ 2024-12-18 2/week @ 2025-02-05 106/week @ 2025-02-12 13/week @ 2025-02-19 5/week @ 2025-02-26

126 downloads per month

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