Function std::iter::iterateExperimental
[-]
[+]
[src]
pub fn iterate<T: Clone>(seed: T, f: |T| -> T) -> Unfold<'a, T, (|T| -> T, Option<T>, bool)>
Create a new iterator that produces an infinite sequence of
repeated applications of the given function f.