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.
mapWithAlphabeticName :: (Name -> a -> b) -> [a] -> [b]th-lego THLego.Helpers Map every element of a list with a new name.
mapperIsLabel :: TyLit -> Type -> Type -> Exp -> Decth-lego THLego.Instances Template of IsLabel for instances mapping to mapper functions.
instance (mapper ~ (Text -> Text)) => IsLabel "name" (mapper -> Person -> Person)
mapSlim :: forall (procs :: [Type]) . AreProcs procs => HandlesOf procs -> [SlimHandle]tmp-proc System.TmpProc.Docker Obtain the SlimHandle of several Procs
-
HsYAML Data.YAML No documentation available.
-
ListLike Data.ListLike A map in monad space. Same as sequence . map See also rigidMapM
mapM_ :: (Monad m, FoldableLL full item) => (item -> m b) -> full -> m ()ListLike Data.ListLike A map in monad space, discarding results.
-
ListLike Data.ListLike.Base A map in monad space. Same as sequence . map See also rigidMapM
mapM_ :: (Monad m, FoldableLL full item) => (item -> m b) -> full -> m ()ListLike Data.ListLike.FoldableLL A map in monad space, discarding results.
mapAccumL :: Traversable t => (s -> a -> (s, b)) -> s -> t a -> (s, t b)basic-prelude BasicPrelude The mapAccumL function behaves like a combination of fmap and foldl; it applies a function to each element of a structure, passing an accumulating parameter from left to right, and returning a final value of this accumulator together with the new structure.
Examples
Basic usage:>>> mapAccumL (\a b -> (a + b, a)) 0 [1..10] (55,[0,1,3,6,10,15,21,28,36,45])
>>> mapAccumL (\a b -> (a <> show b, a)) "0" [1..5] ("012345",["0","01","012","0123","01234"])mapAccumR :: Traversable t => (s -> a -> (s, b)) -> s -> t a -> (s, t b)basic-prelude BasicPrelude The mapAccumR function behaves like a combination of fmap and foldr; it applies a function to each element of a structure, passing an accumulating parameter from right to left, and returning a final value of this accumulator together with the new structure.
Examples
Basic usage:>>> mapAccumR (\a b -> (a + b, a)) 0 [1..10] (55,[54,52,49,45,40,34,27,19,10,0])
>>> mapAccumR (\a b -> (a <> show b, a)) "0" [1..5] ("054321",["05432","0543","054","05","0"])