Hoogle Search

Within LTS Haskell 24.33 (ghc-9.10.3)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. mapM_ :: (Monad m, Storable a) => (a -> m b) -> Vector a -> m ()

    rebase Rebase.Data.Vector.Storable

    No documentation available.

  2. mapMaybe :: (Storable a, Storable b) => (a -> Maybe b) -> Vector a -> Vector b

    rebase Rebase.Data.Vector.Storable

    No documentation available.

  3. mapMaybeM :: (Monad m, Storable a, Storable b) => (a -> m (Maybe b)) -> Vector a -> m (Vector b)

    rebase Rebase.Data.Vector.Storable

    No documentation available.

  4. mapM_ :: (PrimMonad m, Storable a) => (a -> m b) -> MVector (PrimState m) a -> m ()

    rebase Rebase.Data.Vector.Storable.Mutable

    No documentation available.

  5. mapM :: (Monad m, Unbox a, Unbox b) => (a -> m b) -> Vector a -> m (Vector b)

    rebase Rebase.Data.Vector.Unboxed

    No documentation available.

  6. mapM_ :: (Monad m, Unbox a) => (a -> m b) -> Vector a -> m ()

    rebase Rebase.Data.Vector.Unboxed

    No documentation available.

  7. mapMaybe :: (Unbox a, Unbox b) => (a -> Maybe b) -> Vector a -> Vector b

    rebase Rebase.Data.Vector.Unboxed

    No documentation available.

  8. mapMaybeM :: (Monad m, Unbox a, Unbox b) => (a -> m (Maybe b)) -> Vector a -> m (Vector b)

    rebase Rebase.Data.Vector.Unboxed

    No documentation available.

  9. mapM_ :: (PrimMonad m, Unbox a) => (a -> m b) -> MVector (PrimState m) a -> m ()

    rebase Rebase.Data.Vector.Unboxed.Mutable

    No documentation available.

  10. mapBoth :: (a -> c) -> (b -> d) -> Either a b -> Either c d

    rebase Rebase.Prelude

    The mapBoth function takes two functions and applies the first if iff the value takes the form Left _ and the second if the value takes the form Right _. Using Data.Bifunctor:

    mapBoth = bimap
    
    Using Control.Arrow:
    mapBoth = (+++)
    
    >>> mapBoth (*2) (*3) (Left 4)
    Left 8
    
    >>> mapBoth (*2) (*3) (Right 4)
    Right 12
    

Page 244 of many | Previous | Next