Function core::iter::repeat [] [src]

pub fn repeat<T: Clone>(elt: T) -> Repeat<T>

Creates a new iterator that endlessly repeats the element elt.