Function attempt

Source
pub fn attempt<T>(max_iters: usize, f: impl FnMut() -> Option<T>) -> Option<T>