:: (a -> m (Maybe b)) -> [a] -> m [b] -package:relude
A version of
mapMaybe that works with a monadic predicate.
A monadic version of
mapMaybe :: (a -> Maybe b) ->
[a] -> [b].
Applicative version of mapMaybe
O(n) Apply the monadic function to each element of the vector
and discard elements returning
Nothing.
A monadic version of mapMaybe :: (a -> Maybe b) -> [a] ->
[b].