Hoogle Search
Within LTS Haskell 24.4 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
mapMaybe :: forall k a b . (a -> Maybe b) -> MonoidalMap k a -> MonoidalMap k bmonoidal-containers Data.Map.Monoidal.Strict No documentation available.
mapMaybe :: (a -> Maybe b) -> NEIntMap a -> IntMap bnonempty-containers Data.IntMap.NonEmpty O(n). Map values and collect the Just results. Returns a potentially empty map (IntMap), because the function could potentially return Nothing on all items in the NEIntMap.
let f x = if x == "a" then Just "new a" else Nothing mapMaybe f (fromList ((5,"a") :| [(3,"b")])) == Data.IntMap.singleton 5 "new a"
mapMaybe :: (a -> Maybe b) -> NEMap k a -> Map k bnonempty-containers Data.Map.NonEmpty O(n). Map values and collect the Just results. Returns a potentially empty map (Map), because the function could potentially return Nothing on all items in the NEMap.
let f x = if x == "a" then Just "new a" else Nothing mapMaybe f (fromList ((5,"a") :| [(3,"b")])) == Data.Map.singleton 5 "new a"
mapMaybe :: (a -> Maybe b) -> Vector a -> Vector brebase Rebase.Data.Vector No documentation available.
mapMaybe :: forall (m :: Type -> Type) a b . Monad m => (a -> Maybe b) -> Stream m a -> Stream m brebase Rebase.Data.Vector.Fusion.Stream.Monadic No documentation available.
mapMaybe :: (Vector v a, Vector v b) => (a -> Maybe b) -> v a -> v brebase Rebase.Data.Vector.Generic No documentation available.
mapMaybe :: (Prim a, Prim b) => (a -> Maybe b) -> Vector a -> Vector brebase Rebase.Data.Vector.Primitive No documentation available.
mapMaybe :: (Storable a, Storable b) => (a -> Maybe b) -> Vector a -> Vector brebase Rebase.Data.Vector.Storable No documentation available.
mapMaybe :: (Unbox a, Unbox b) => (a -> Maybe b) -> Vector a -> Vector brebase Rebase.Data.Vector.Unboxed No documentation available.
-
rhine FRP.Rhine.ClSF.Core Call a ClSF every time the input is 'Just a'. Caution: This will not change the time differences since the last tick. For example, while integrate 1 is approximately the same as timeInfoOf sinceInit, mapMaybe $ integrate 1 is very different from mapMaybe $ timeInfoOf sinceInit. The former only integrates when the input is Just 1, whereas the latter always returns the correct time since initialisation.