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.
mapLaTeXT :: (m (a, LaTeX) -> m (a, LaTeX)) -> LaTeXT m a -> LaTeXT m aHaTeX Text.LaTeX.Base.Writer A helper function for building monad transformers, e.g.
instance MonadReader r m => MonadReader r (LaTeXT m) where ask = lift ask local = mapLaTeXT . local
This declaration could be included here, but it would add a dependency on mtl.-
HaTeX Text.LaTeX.Packages.AMSMath A right-arrow for function definitions, <math>.
mapStrategyM :: Monad m => (a -> m (Maybe b)) -> Strategy a -> m (Strategy b)LambdaHack Game.LambdaHack.Client.AI.Strategy No documentation available.
mapPosToOffset :: (Point, AttrCharW32) -> (PointUI, AttrString)LambdaHack Game.LambdaHack.Client.UI.Animation No documentation available.
mapFontIsBitmap :: FrontendSession -> BoolLambdaHack Game.LambdaHack.Client.UI.Frontend.Sdl No documentation available.
-
LambdaHack Game.LambdaHack.Client.UI.PointUI The row where the dungeon map starts, both in PointUI and PointSquare coordinates.
mapToSquare :: Point -> PointSquareLambdaHack Game.LambdaHack.Client.UI.PointUI No documentation available.
mapActorItems_ :: Monad m => (CStore -> ItemId -> ItemQuant -> m ()) -> Actor -> State -> m ()LambdaHack Game.LambdaHack.Common.ActorState No documentation available.
mapA :: (UnboxRepClass c, UnboxRepClass d) => (c -> d) -> Array c -> Array dLambdaHack Game.LambdaHack.Common.PointArray Map over an array.
mapAccumL :: Traversable t => (s -> a -> (s, b)) -> s -> t a -> (s, t b)LambdaHack Game.LambdaHack.Core.Prelude 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"])