iter_fallback

Crates.ioiter_fallback
lib.rsiter_fallback
version0.1.2
sourcesrc
created_at2018-11-10 03:27:22.68767
updated_at2018-11-16 05:15:17.070822
descriptionDrive two iters, exhaust first then fallback on the rest of second
homepage
repositoryhttps://github.com/Avi-D-coder/iter_fallback
max_upload_size
id95759
size13,790
Avi Dessauer (Avi-D-coder)

documentation

README

crates.io

iter_fallback

An iterator that falls back to a second iterator when the first one is exusted.

 assert_eq!(
            vec![1, 2, 3, 4, 5],
            vec![1, 2, 3]
                .into_iter()
                .fallback(vec![0, 0, 0, 4, 5].into_iter())
                .collect::<Vec<_>>()
        )

Commit count: 10

cargo fmt