Hoogle Search

Within LTS Haskell 24.34 (ghc-9.10.3)

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

  1. mapToKeys :: Map k v -> Slist k

    slist Slist.Containers

    O(n). Returns a Slist of all keys of the map in the ascending order.

  2. mapToPairs :: Map k v -> Slist (k, v)

    slist Slist.Containers

    O(n). Returns a Slist of all key-value pairs of the map in the ascending order of their keys.

  3. mapToVals :: Map k v -> Slist v

    slist Slist.Containers

    O(n). Returns a Slist of all values of the map in the ascending order of their keys.

  4. mapMaybe :: forall b a . (a -> Maybe b) -> Slist a -> Slist b

    slist Slist.Maybe

    The Maybe version of map which can throw out elements. If appliying the given function returns Nothing, no element is added on to the result list. If it is Just b, then b is included in the result list.

    >>> maybeEven x = if even x then Just x else Nothing
    
    >>> s = cons 1 $ cons 2 $ one 3
    
    >>> mapMaybe maybeEven s
    Slist {sList = [2], sSize = Size 1}
    
    If we map the Just constructor, the entire list should be returned:
    >>> mapMaybe Just s
    Slist {sList = [1,2,3], sSize = Size 3}
    

  5. mapGenerated :: Mapping -> !Pos

    sourcemap SourceMap.Types

    No documentation available.

  6. mapName :: Mapping -> !Maybe Text

    sourcemap SourceMap.Types

    No documentation available.

  7. mapOriginal :: Mapping -> !Maybe Pos

    sourcemap SourceMap.Types

    No documentation available.

  8. mapSourceFile :: Mapping -> !Maybe FilePath

    sourcemap SourceMap.Types

    No documentation available.

  9. mapM :: (IsStream t, MonadAsync m) => (a -> m b) -> t m a -> t m b

    streamly Streamly.Internal.Data.Stream.IsStream

    mapM f = sequence . map f
    
    Apply a monadic function to each element of the stream and replace it with the output of the resulting action.
    >>> drain $ Stream.mapM putStr $ Stream.fromList ["a", "b", "c"]
    abc
    
    >>> :{
    drain $ Stream.replicateM 10 (return 1)
    & (fromSerial . Stream.mapM (x -> threadDelay 1000000 >> print x))
    :}
    1
    ...
    1
    
    > drain $ Stream.replicateM 10 (return 1)
    & (fromAsync . Stream.mapM (x -> threadDelay 1000000 >> print x))
    
    Concurrent (do not use with fromParallel on infinite streams)

  10. mapM_ :: Monad m => (a -> m b) -> SerialT m a -> m ()

    streamly Streamly.Internal.Data.Stream.IsStream

    mapM_ = Stream.drain . Stream.mapM
    
    Apply a monadic action to each element of the stream and discard the output of the action. This is not really a pure transformation operation but a transformation followed by fold.

Page 361 of many | Previous | Next