[][src]Function unfold::unfold

pub fn unfold<T, F>(func: F, init: T) -> Unfold<T, F>

Notable traits for Unfold<T, F>

impl<T, F> Iterator for Unfold<T, F> where
    F: Fn(T) -> T,
    T: Copy
type Item = T;
where
    F: Fn(T) -> T,
    T: Copy

This function it is a simple front-end to Unfold::new : allows the user to easily create a new Unfold iterator