Hoogle Search

Within LTS Haskell 24.28 (ghc-9.10.3)

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

  1. mapAccumL :: (Storable a, Storable b) => (acc -> a -> (acc, b)) -> acc -> Vector a -> (acc, Vector b)

    storablevector Data.StorableVector

    The mapAccumL function behaves like a combination of map and foldl; it applies a function to each element of a Vector, passing an accumulating parameter from left to right, and returning a final value of this accumulator together with the new list.

  2. mapAccumR :: (Storable a, Storable b) => (acc -> a -> (acc, b)) -> acc -> Vector a -> (acc, Vector b)

    storablevector Data.StorableVector

    The mapAccumR function behaves like a combination of map and foldr; it applies a function to each element of a Vector, passing an accumulating parameter from right to left, and returning a final value of this accumulator together with the new Vector.

  3. mapIndexed :: (Storable a, Storable b) => (Int -> a -> b) -> Vector a -> Vector b

    storablevector Data.StorableVector

    O(n) map functions, provided with the index at each position

  4. mapAccumL :: (Storable a, Storable b) => (acc -> a -> (acc, b)) -> acc -> Vector a -> (acc, Vector b)

    storablevector Data.StorableVector.Lazy

    No documentation available.

  5. mapAccumR :: (Storable a, Storable b) => (acc -> a -> (acc, b)) -> acc -> Vector a -> (acc, Vector b)

    storablevector Data.StorableVector.Lazy

    No documentation available.

  6. mapAccumL :: (Storable a, Storable b) => (acc -> a -> (acc, b)) -> acc -> Vector a -> (acc, Vector b)

    storablevector Data.StorableVector.Lazy.Pattern

    No documentation available.

  7. mapAccumR :: (Storable a, Storable b) => (acc -> a -> (acc, b)) -> acc -> Vector a -> (acc, Vector b)

    storablevector Data.StorableVector.Lazy.Pattern

    No documentation available.

  8. mapAccumL :: (Size size, Storable a, Storable b) => (acc -> a -> (acc, b)) -> acc -> Vector size a -> (acc, Vector size b)

    storablevector Data.StorableVector.Lazy.Typed

    No documentation available.

  9. mapAccumR :: (Size size, Storable a, Storable b) => (acc -> a -> (acc, b)) -> acc -> Vector size a -> (acc, Vector size b)

    storablevector Data.StorableVector.Lazy.Typed

    No documentation available.

  10. mapST :: (Storable a, Storable b) => (a -> ST s b) -> Vector a -> ST s (Vector b)

    storablevector Data.StorableVector.ST.Lazy

    :module + Data.STRef
    VS.unpack $ Control.Monad.ST.runST (do ref <- newSTRef 'a'; mapST (\ _n -> do c <- readSTRef ref; modifySTRef ref succ; return c) (VS.pack [1,2,3,4::Data.Int.Int16]))
    

Page 130 of many | Previous | Next