Hoogle Search
Within LTS Haskell 24.6 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
mapPos :: ((Int, Int) -> a -> b) -> Matrix a -> Matrix bmatrix Data.Matrix O(rows*cols). Map a function over elements. Example:
( 1 2 3 ) ( 0 -1 -2 ) ( 4 5 6 ) ( 1 0 -1 ) mapPos (\(r,c) a -> r - c) ( 7 8 9 ) = ( 2 1 0 )
mapRow :: (Int -> a -> a) -> Int -> Matrix a -> Matrix amatrix Data.Matrix O(rows*cols). Map a function over a row. Example:
( 1 2 3 ) ( 1 2 3 ) ( 4 5 6 ) ( 5 6 7 ) mapRow (\_ x -> x + 1) 2 ( 7 8 9 ) = ( 7 8 9 )
-
vector-sized Data.Vector.Generic.Sized O(n) Apply the monadic action to all elements of the vector, yielding a vector of results.
-
vector-sized Data.Vector.Generic.Sized O(n) Apply the monadic action to all elements of a vector and ignore the results.
-
vector-sized Data.Vector.Primitive.Sized O(n) Apply the monadic action to all elements of the vector, yielding a vector of results.
mapM_ :: forall m a b (n :: Nat) . (Monad m, Prim a) => (a -> m b) -> Vector n a -> m ()vector-sized Data.Vector.Primitive.Sized O(n) Apply the monadic action to all elements of a vector and ignore the results.
mapM :: forall m a b (n :: Nat) . Monad m => (a -> m b) -> Vector n a -> m (Vector n b)vector-sized Data.Vector.Sized O(n) Apply the monadic action to all elements of the vector, yielding a vector of results.
mapM_ :: forall m a b (n :: Nat) . Monad m => (a -> m b) -> Vector n a -> m ()vector-sized Data.Vector.Sized O(n) Apply the monadic action to all elements of a vector and ignore the results.
-
vector-sized Data.Vector.Storable.Sized O(n) Apply the monadic action to all elements of the vector, yielding a vector of results.
mapM_ :: forall m a b (n :: Nat) . (Monad m, Storable a) => (a -> m b) -> Vector n a -> m ()vector-sized Data.Vector.Storable.Sized O(n) Apply the monadic action to all elements of a vector and ignore the results.