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.
mapMaybeWithKey :: (Key -> a -> Maybe b) -> Word64Map a -> Word64Map bghc-lib-parser GHC.Data.Word64Map.Internal Map keys/values and collect the Just results.
let f k _ = if k < 5 then Just ("key : " ++ (show k)) else Nothing mapMaybeWithKey f (fromList [(5,"a"), (3,"b")]) == singleton 3 "key : 3"
mapMaybeWithKey :: (Key -> a -> Maybe b) -> Word64Map a -> Word64Map bghc-lib-parser GHC.Data.Word64Map.Lazy Map keys/values and collect the Just results.
let f k _ = if k < 5 then Just ("key : " ++ (show k)) else Nothing mapMaybeWithKey f (fromList [(5,"a"), (3,"b")]) == singleton 3 "key : 3"
mapMaybeWithKey :: (Key -> a -> Maybe b) -> Word64Map a -> Word64Map bghc-lib-parser GHC.Data.Word64Map.Strict Map keys/values and collect the Just results.
let f k _ = if k < 5 then Just ("key : " ++ (show k)) else Nothing mapMaybeWithKey f (fromList [(5,"a"), (3,"b")]) == singleton 3 "key : 3"
mapMaybeWithKey :: (Key -> a -> Maybe b) -> Word64Map a -> Word64Map bghc-lib-parser GHC.Data.Word64Map.Strict.Internal Map keys/values and collect the Just results.
let f k _ = if k < 5 then Just ("key : " ++ (show k)) else Nothing mapMaybeWithKey f (fromList [(5,"a"), (3,"b")]) == singleton 3 "key : 3"
mapMaybeNameEnv :: (a -> Maybe b) -> NameEnv a -> NameEnv bghc-lib-parser GHC.Types.Name.Env No documentation available.
mapMaybeOccEnv :: (a -> Maybe b) -> OccEnv a -> OccEnv bghc-lib-parser GHC.Types.Name.Occurrence mapMaybe for b OccEnv.
mapMaybeUniqSet_sameUnique :: (a -> Maybe b) -> UniqSet a -> UniqSet bghc-lib-parser GHC.Types.Unique.Set Like mapMaybe, but you must ensure the passed in function does not change the Unique.
mapMaybeModuleEnv :: (Module -> a -> Maybe b) -> ModuleEnv a -> ModuleEnv bghc-lib-parser GHC.Unit.Module.Env No documentation available.
mapMaybe' :: Foldable f => (a -> Maybe b) -> f a -> [b]ghc-lib-parser GHC.Utils.Misc No documentation available.
mapMaybeM :: Applicative m => (a -> m (Maybe b)) -> [a] -> m [b]ghc-lib-parser GHC.Utils.Monad Applicative version of mapMaybe