Applies 'f' to elements of 'xs' until 'f' returns Some(b), which is immediately returned as result of this method.
Applies 'f' to elements of 'xs' until 'f' returns Some(b), which is immediately returned as result of this method. If not such element found, returns None as result.
Apply m for each element of this collection, group by key and reduce each group using r.