Function suppositions::generators::lazy
[−]
[src]
pub fn lazy<F: Fn() -> G, G: Generator>(thunk: F) -> LazyGenerator<F>
Returns a lazily evaluated generator. The thunk
should be pure.
Mostly used to allow recursive generators.