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.

  1. mapMaybeWithKey :: Ord k => (k -> a -> Maybe b) -> MaxPQueue k a -> MaxPQueue k b

    pqueue Data.PQueue.Prio.Max

    Map values and collect the Just results.

  2. mapMaybeWithKey :: Ord k => (k -> a -> Maybe b) -> MinPQueue k a -> MinPQueue k b

    pqueue Data.PQueue.Prio.Min

    Map values and collect the Just results.

  3. mapMaybeWithKey :: (Int -> a -> Maybe b) -> MonoidalIntMap a -> MonoidalIntMap b

    monoidal-containers Data.IntMap.Monoidal

    No documentation available.

  4. mapMaybeWithKey :: (Int -> a -> Maybe b) -> MonoidalIntMap a -> MonoidalIntMap b

    monoidal-containers Data.IntMap.Monoidal.Strict

    No documentation available.

  5. mapMaybeWithKey :: (k -> a -> Maybe b) -> MonoidalMap k a -> MonoidalMap k b

    monoidal-containers Data.Map.Monoidal

    No documentation available.

  6. mapMaybeWithKey :: (k -> a -> Maybe b) -> MonoidalMap k a -> MonoidalMap k b

    monoidal-containers Data.Map.Monoidal.Strict

    No documentation available.

  7. mapMaybeWithKey :: (Key -> a -> Maybe b) -> NEIntMap a -> IntMap b

    nonempty-containers Data.IntMap.NonEmpty

    O(n). Map keys/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 k _ = if k < 5 then Just ("key : " ++ (show k)) else Nothing
    mapMaybeWithKey f (fromList ((5,"a") :| [(3,"b")])) == Data.IntMap.singleton 3 "key : 3"
    

  8. mapMaybeWithKey :: (k -> a -> Maybe b) -> NEMap k a -> Map k b

    nonempty-containers Data.Map.NonEmpty

    O(n). Map keys/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 k _ = if k < 5 then Just ("key : " ++ (show k)) else Nothing
    mapMaybeWithKey f (fromList ((5,"a") :| [(3,"b")])) == Data.Map.singleton 3 "key : 3"
    

  9. mapMaybeM :: Monad m => (a -> m (Maybe b)) -> Vector a -> m (Vector b)

    rebase Rebase.Data.Vector

    No documentation available.

  10. mapMaybeM :: Monad m => (a -> m (Maybe b)) -> Stream m a -> Stream m b

    rebase Rebase.Data.Vector.Fusion.Stream.Monadic

    Apply monadic function to each element and drop all Nothings

Page 22 of many | Previous | Next