Hoogle Search

Within LTS Haskell 24.6 (ghc-9.10.2)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

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

    streamly-core Streamly.Data.Stream

    Like mapMaybe but maps a monadic function. Equivalent to:

    >>> mapMaybeM f = Stream.catMaybes . Stream.mapM f
    
    >>> mapM f = Stream.mapMaybeM (\x -> Just <$> f x)
    

  2. mapM :: Monad m => (a -> m b) -> StreamK m a -> StreamK m b

    streamly-core Streamly.Data.StreamK

    No documentation available.

  3. mapM :: Monad m => (b -> m c) -> Unfold m a b -> Unfold m a c

    streamly-core Streamly.Data.Unfold

    Apply a monadic function to each element of the stream and replace it with the output of the resulting action.

    >>> mapM f = Unfold.mapM2 (const f)
    

  4. mapM :: Monad m => (b -> m c) -> Fold m a b -> Fold m a c

    streamly-core Streamly.Internal.Data.Fold

    Deprecated: Use rmapM instead

  5. mapMStep :: Applicative m => (a -> m b) -> Step s a -> m (Step s b)

    streamly-core Streamly.Internal.Data.Fold

    Map a monadic function over the result b in Step s b. Internal

  6. mapMaybe :: forall (m :: Type -> Type) a b r . Monad m => (a -> Maybe b) -> Fold m b r -> Fold m a r

    streamly-core Streamly.Internal.Data.Fold

    mapMaybe f fold maps a Maybe returning function f on the input of the fold, filters out Nothing elements, and return the values extracted from Just.

    >>> mapMaybe f = Fold.lmap f . Fold.catMaybes
    
    >>> mapMaybe f = Fold.mapMaybeM (return . f)
    
    >>> f x = if even x then Just x else Nothing
    
    >>> fld = Fold.mapMaybe f Fold.toList
    
    >>> Stream.fold fld (Stream.enumerateFromTo 1 10)
    [2,4,6,8,10]
    

  7. mapMaybeM :: Monad m => (a -> m (Maybe b)) -> Fold m b r -> Fold m a r

    streamly-core Streamly.Internal.Data.Fold

    >>> mapMaybeM f = Fold.lmapM f . Fold.catMaybes
    

  8. mapAlterF :: (IsMap f, Functor g) => (Maybe a -> g (Maybe a)) -> Key f -> f a -> g (f a)

    streamly-core Streamly.Internal.Data.IsMap

    No documentation available.

  9. mapDelete :: IsMap f => Key f -> f a -> f a

    streamly-core Streamly.Internal.Data.IsMap

    No documentation available.

  10. mapEmpty :: IsMap f => f a

    streamly-core Streamly.Internal.Data.IsMap

    No documentation available.

Page 258 of many | Previous | Next