gen-nested-iter-yield

crates.io docs.rs CI

gen-nested-iter-yield exports a helper macro, nested_iter_yield, which can be used to generate n-nested for loops over identical iterators. This is useful for generating a stream of permutations with replacement without storing unnecessary intermediary buffers.

The macro returns a genawaiter::sync generator which, when the feature futures03 is enabled, implements futures::stream::Stream.