macro_rules! pike_opt {
($head:tt $(|> $funs_head:tt $(:: $funs_tail:tt)*)+) => { ... };
}Expand description
Works similar to pike but pike_opt keeps going as long as the proceding functions retuns None.
Returns the first Some value.
ⓘ
let data = pike_opt!(id |> get_cached |> fetch_local |> fetch_remote);