- Notifications
You must be signed in to change notification settings - Fork 55
Open
Labels
type: enhancementA new feature or addition.A new feature or addition.
Description
Is there any reason why there is foldlM (foldM) and there is no foldrM?
I was confused because I didn't hit when I searched for this in pursuit.
foldrM :: forall a m b f. Foldable f => Monad m => (a -> b -> m b) -> b -> f a -> m b foldrM f z0 xs = foldl c pure xs z0 where c k x z = f x z >>= k
Metadata
Metadata
Assignees
Labels
type: enhancementA new feature or addition.A new feature or addition.