MaybeIterableTraverse<T> extension
Extension for traversing any iterable and using Maybe to represent the result.
- on
-
- Iterable<
T>
- Iterable<
Methods
-
mapMaybe<
U> (Maybe< U> tryMap(T)) → Maybe<List< U> > -
Available on Iterable<
Traverses an iterable trying to map the elements withT> , provided by the MaybeIterableTraverse extensiontryMap
, returning None if either the iterable was empty or the result of every mapping operation was None. -
traverse<
U> (Maybe< U> tryMap(T)) → Maybe<List< U> > -
Available on Iterable<
Traverses an iterable trying to map the elements withT> , provided by the MaybeIterableTraverse extensiontryMap
, returning None if either the iterable was empty or the result of every mapping operation was None.