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.
2 parents d63e95d + 3a7880c commit 8dddd96Copy full SHA for 8dddd96
src/Data/Set/Monad.hs
@@ -22,7 +22,7 @@ mapM_ :: (Ord a,Ord b,Monad m)
22
=> (a -> m b) -> Set a -> m ()
23
mapM_ f = L.mapM_ f . S.toList
24
25
--- | Map over a 'Set' in a monad.
+-- | Filter elements of a 'Set' in a monad.
26
filterM :: (Ord a,Monad m)
27
=> (a -> m Bool) -> Set a -> m (Set a)
28
filterM f = liftM S.fromList . L.filterM f . S.toList
0 commit comments