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.

  1. mapPos :: ((Int, Int) -> a -> b) -> Matrix a -> Matrix b

    matrix 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 )
    

  2. mapRow :: (Int -> a -> a) -> Int -> Matrix a -> Matrix a

    matrix 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 )
    

  3. mapM :: forall m (v :: Type -> Type) a b (n :: Nat) . (Monad m, Vector v a, Vector v b) => (a -> m b) -> Vector v n a -> m (Vector v n b)

    vector-sized Data.Vector.Generic.Sized

    O(n) Apply the monadic action to all elements of the vector, yielding a vector of results.

  4. mapM_ :: forall m (v :: Type -> Type) a b (n :: Nat) . (Monad m, Vector v a) => (a -> m b) -> Vector v n a -> m ()

    vector-sized Data.Vector.Generic.Sized

    O(n) Apply the monadic action to all elements of a vector and ignore the results.

  5. mapM :: forall m a b (n :: Nat) . (Monad m, Prim a, Prim b) => (a -> m b) -> Vector n a -> m (Vector n b)

    vector-sized Data.Vector.Primitive.Sized

    O(n) Apply the monadic action to all elements of the vector, yielding a vector of results.

  6. 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.

  7. 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.

  8. 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.

  9. mapM :: forall m a b (n :: Nat) . (Monad m, Storable a, Storable b) => (a -> m b) -> Vector n a -> m (Vector n b)

    vector-sized Data.Vector.Storable.Sized

    O(n) Apply the monadic action to all elements of the vector, yielding a vector of results.

  10. 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.

Page 149 of many | Previous | Next