Hoogle Search
Within LTS Haskell 24.5 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
mapMaybe :: (v1 -> Maybe v2) -> HashMap k v1 -> HashMap k v2unordered-containers Data.HashMap.Lazy Transform this map by applying a function to every value and retaining only some of them.
mapMaybeWithKey :: (k -> v1 -> Maybe v2) -> HashMap k v1 -> HashMap k v2unordered-containers Data.HashMap.Lazy Transform this map by applying a function to every value and retaining only some of them.
mapMaybe :: (v1 -> Maybe v2) -> HashMap k v1 -> HashMap k v2unordered-containers Data.HashMap.Strict Transform this map by applying a function to every value and retaining only some of them.
mapMaybeWithKey :: (k -> v1 -> Maybe v2) -> HashMap k v1 -> HashMap k v2unordered-containers Data.HashMap.Strict Transform this map by applying a function to every value and retaining only some of them.
mapMArrayM_ :: (MArray a e m, Ix i) => (e -> m b) -> a i e -> m ()array Data.Array.Base Map elements to monadic actions, sequence them left-to-right, and discard the results.
mapMArrayM_ :: (MArray a e m, Ix i) => (e -> m b) -> a i e -> m ()array Data.Array.MArray Map elements to monadic actions, sequence them left-to-right, and discard the results.
mapMArrayM_ :: (MArray a e m, Ix i) => (e -> m b) -> a i e -> m ()array Data.Array.MArray.Safe Map elements to monadic actions, sequence them left-to-right, and discard the results.
mapMaybePrimArray :: (Prim a, Prim b) => (a -> Maybe b) -> PrimArray a -> PrimArray bprimitive Data.Primitive.PrimArray Map over a primitive array, optionally discarding some elements. This has the same behavior as Data.Maybe.mapMaybe.
-
primitive Data.Primitive.PrimArray Map over the primitive array, keeping the elements for which the applicative predicate provides a Just.
-
primitive Data.Primitive.PrimArray Map over the primitive array, keeping the elements for which the monadic predicate provides a Just.