Function frunk::semigroup::combine_all_option
source · pub fn combine_all_option<T>(xs: &[T]) -> Option<T>
Expand description
Given a sequence of xs
, combine them and return the total
If the sequence is empty, returns None. Otherwise, returns Some(total).