macro_rules! try_vec { ($exp:expr) => { ... }; }
fn add(maybe_vec: Option<Vec<i32>>) -> Result<Vec<i32>, &'static str> { let v = try_vec!(maybe_vec); Ok(v.into_iter().map(|x| x + 1).collect()) }