Hoogle Search
Within LTS Haskell 24.19 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
apecs Apecs.System Monadically iterates over all entites with a cx, and writes their cy.
-
apecs Apecs.System Monadically iterates over all entites with a cx
imapM :: (Vector v a, Vector v b, Applicative f) => (Int -> a -> f b) -> v a -> f (v b)fixed-vector Data.Vector.Fixed Apply monadic function to every element of the vector and its index.
imapM_ :: (Vector v a, Applicative f) => (Int -> a -> f b) -> v a -> f ()fixed-vector Data.Vector.Fixed Apply monadic function to every element of the vector and its index and discard result.
-
fixed-vector Data.Vector.Fixed.Cont Apply monadic function to every element of the vector and its index.
-
fixed-vector Data.Vector.Fixed.Cont Apply monadic action to each element of vector and its index and ignore result.
imapMG :: (Vector v a, Vector w b, Dim w ~ Dim v, Monad m) => (Int -> a -> m b) -> v a -> m (w b)fixed-vector Data.Vector.Fixed.Generic Monadic map over vector.
-
messagepack Data.MessagePack.Spec No documentation available.
imapM :: Monad m => (Int -> a -> m b) -> NonEmptyVector a -> m (NonEmptyVector b)nonempty-vector Data.Vector.NonEmpty O(n) Apply the monadic action to every element of a non-empty vector and its index, yielding a non-empty vector of results.
>>> imapM (\i a -> if i == 1 then Just a else Just 0) (unsafeFromList [1..3]) Just [0,2,0]
>>> imapM (\_ _ -> Nothing) (unsafeFromList [1..3]) Nothing
imapM_ :: Monad m => (Int -> a -> m b) -> NonEmptyVector a -> m ()nonempty-vector Data.Vector.NonEmpty O(n) Apply the monadic action to every element of a non-emptpy vector and its index, ignoring the results
>>> imapM_ (\i a -> if i == 1 then P.print a else P.putStrLn "0") (unsafeFromList [1..3]) 0 2 0
>>> imapM_ (\_ _ -> Nothing) (unsafeFromList [1..3]) Nothing