Hoogle Search
Within LTS Haskell 24.40 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
simap :: Stream r ix a => (ix -> a -> b) -> Array r ix a -> Vector DS bmassiv Data.Massiv.Vector Map an index aware function over a stream vector
Examples
-
massiv Data.Massiv.Vector Traverse a stream vector with a monadic index aware function. Corresponds to: mapM (uncurry f) . imap (,) v
Examples
simapM_ :: forall r ix a b m . (Stream r ix a, Monad m) => (ix -> a -> m b) -> Array r ix a -> m ()massiv Data.Massiv.Vector Traverse a stream vector with a monadic index aware function, while discarding the result
Examples
simapMaybe :: Stream r ix a => (ix -> a -> Maybe b) -> Array r ix a -> Vector DS bmassiv Data.Massiv.Vector Similar to smapMaybe, but map with an index aware function.
Examples
-
massiv Data.Massiv.Vector Similar to smapMaybeM, but map with an index aware function.
Examples
smap :: Stream r ix a => (a -> b) -> Array r ix a -> Vector DS bmassiv Data.Massiv.Vector Map a function over a stream vector
Examples
-
massiv Data.Massiv.Vector Traverse a stream vector with a monadic function.
Examples
smapM_ :: forall r ix a b m . (Stream r ix a, Monad m) => (a -> m b) -> Array r ix a -> m ()massiv Data.Massiv.Vector Traverse a stream vector with a monadic function, while discarding the result
Examples
smapMaybe :: Stream r ix a => (a -> Maybe b) -> Array r ix a -> Vector DS bmassiv Data.Massiv.Vector Apply a function to each element of the array, while discarding Nothing and keeping the Maybe result.
Examples
-
massiv Data.Massiv.Vector Similar to smapMaybe, but with the Applicative function. Similar to mapMaybe id $ mapM f arr
Examples