1 2 3 4 5 6 7 8 9
use readahead_iterator::IntoReadahead; fn main() { (0..) .into_iter() .readahead(3) .take(100) .for_each(|x| println!("{}", x)); }