fn maybe_iter<I: Iterator>(i: Option<I>) -> impl Iterator<Item = I::Item>
Turns option of iterator into an iterator (this is just flatten)