We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c4875cc commit d60cc11Copy full SHA for d60cc11
src/Data/Foldable.purs
@@ -233,6 +233,10 @@ sequence_ = traverse_ id
233
oneOf :: forall f g a. Foldable f => Plus g => f (g a) -> g a
234
oneOf = foldr alt empty
235
236
+-- | Folds a structure into some `Plus`.
237
+oneOfMap :: forall f g a b. Foldable f => Plus g => (a -> g b) -> f a -> g b
238
+oneOfMap f = foldr (alt <<< f) empty
239
+
240
-- | Fold a data structure, accumulating values in some `Monoid`,
241
-- | combining adjacent elements using the specified separator.
242
intercalate :: forall f m. Foldable f => Monoid m => m -> f m -> m
0 commit comments