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.
mapToKeys :: Map k v -> Slist kslist Slist.Containers O(n). Returns a Slist of all keys of the map in the ascending order.
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.
mapToVals :: Map k v -> Slist vslist Slist.Containers O(n). Returns a Slist of all values of the map in the ascending order of their keys.
mapMaybe :: forall b a . (a -> Maybe b) -> Slist a -> Slist bslist 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}mapGenerated :: Mapping -> !Possourcemap SourceMap.Types No documentation available.
mapName :: Mapping -> !Maybe Textsourcemap SourceMap.Types No documentation available.
mapOriginal :: Mapping -> !Maybe Possourcemap SourceMap.Types No documentation available.
mapSourceFile :: Mapping -> !Maybe FilePathsourcemap SourceMap.Types No documentation available.
mapM :: (IsStream t, MonadAsync m) => (a -> m b) -> t m a -> t m bstreamly 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)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.