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. mapFemtoseconds :: (Int64 -> Int64) -> Femtoseconds -> Femtoseconds

    clash-prelude Clash.Signal.Internal

    Map Int64 fields in Femtoseconds

  2. mapSignal# :: forall a b (dom :: Domain) . (a -> b) -> Signal dom a -> Signal dom b

    clash-prelude Clash.Signal.Internal

    No documentation available.

  3. mapAccumL :: forall acc x y (n :: Nat) . (acc -> x -> (acc, y)) -> acc -> Vec n x -> (acc, Vec n y)

    clash-prelude Clash.Sized.Vector

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

    >>> mapAccumL (\acc x -> (acc + x,acc + 1)) 0 (1 :> 2 :> 3 :> 4 :> Nil)
    (10,1 :> 2 :> 4 :> 7 :> Nil)
    
    "mapAccumL f acc xs" corresponds to the following circuit layout:

  4. mapAccumR :: forall acc x y (n :: Nat) . (acc -> x -> (acc, y)) -> acc -> Vec n x -> (acc, Vec n y)

    clash-prelude Clash.Sized.Vector

    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.

    >>> mapAccumR (\acc x -> (acc + x,acc + 1)) 0 (1 :> 2 :> 3 :> 4 :> Nil)
    (10,10 :> 8 :> 5 :> 1 :> Nil)
    
    "mapAccumR f acc xs" corresponds to the following circuit layout:

  5. mapAccumS :: forall (m :: Type -> Type) a s b . Monad m => (a -> s -> ConduitT b Void m s) -> s -> ConduitT () b m () -> ConduitT a Void m s

    classy-prelude-conduit ClassyPrelude.Conduit

    Consume a source with a strict accumulator, in a way piecewise defined by a controlling stream. The latter will be evaluated until it terminates.

    >>> let f a s = liftM (:s) $ mapC (*a) =$ CL.take a
    
    >>> reverse $ runIdentity $ yieldMany [0..3] $$ mapAccumS f [] (yieldMany [1..])
    [[],[1],[4,6],[12,15,18]] :: [[Int]]
    

  6. mapAccumWhileC :: forall (m :: Type -> Type) a s b . Monad m => (a -> s -> Either s (s, b)) -> s -> ConduitT a b m s

    classy-prelude-conduit ClassyPrelude.Conduit

    mapWhileC with a break condition dependent on a strict accumulator. Equivalently, mapAccum as long as the result is Right. Instead of producing a leftover, the breaking input determines the resulting accumulator via Left.

  7. mapAccumWhileMC :: Monad m => (a -> s -> m (Either s (s, b))) -> s -> ConduitT a b m s

    classy-prelude-conduit ClassyPrelude.Conduit

    Monadic mapAccumWhileC.

  8. mapC :: forall (m :: Type -> Type) a b . Monad m => (a -> b) -> ConduitT a b m ()

    classy-prelude-conduit ClassyPrelude.Conduit

    Apply a transformation to all values in a stream.

  9. mapCE :: forall (m :: Type -> Type) f a b . (Monad m, Functor f) => (a -> b) -> ConduitT (f a) (f b) m ()

    classy-prelude-conduit ClassyPrelude.Conduit

    Apply a transformation to all elements in a chunked stream.

  10. mapInput :: forall (m :: Type -> Type) i1 i2 o r . Monad m => (i1 -> i2) -> (i2 -> Maybe i1) -> ConduitT i2 o m r -> ConduitT i1 o m r

    classy-prelude-conduit ClassyPrelude.Conduit

    Apply a function to all the input values of a ConduitT. Since 0.5.0

Page 239 of many | Previous | Next