Skip to content

Commit 6958fc2

Browse files
authored
Merge pull request #85 from purescript/remove-filterm
[BREAKING] Remove filterM
2 parents 60b7e2e + c22831f commit 6958fc2

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/Data/Array.purs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ module Data.Array
6868
, filter
6969
, partition
7070
, filterA
71-
, filterM
7271
, mapMaybe
7372
, catMaybes
7473
, mapWithIndex
@@ -429,10 +428,6 @@ filterA p =
429428
traverse (\x -> Tuple x <$> p x)
430429
>>> map (mapMaybe (\(Tuple x b) -> if b then Just x else Nothing))
431430

432-
-- | Deprecated alias for `filterA`.
433-
filterM :: forall a m. Monad m => (a -> m Boolean) -> Array a -> m (Array a)
434-
filterM = filterA
435-
436431
-- | Apply a function to each element in an array, keeping only the results
437432
-- | which contain a value, creating a new array.
438433
mapMaybe :: forall a b. (a -> Maybe b) -> Array a -> Array b

0 commit comments

Comments
 (0)