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. mapMaybe :: Ord b => (a -> Maybe b) -> MinQueue a -> MinQueue b

    pqueue Data.PQueue.Min

    Map elements and collect the Just results.

  2. mapU :: (a -> b) -> MinQueue a -> MinQueue b

    pqueue Data.PQueue.Min

    Assumes that the function it is given is (weakly) monotonic, and applies this function to every element of the priority queue, as in fmap. If the function is not monotonic, the result is undefined.

  3. mapEither :: Ord k => (a -> Either b c) -> MaxPQueue k a -> (MaxPQueue k b, MaxPQueue k c)

    pqueue Data.PQueue.Prio.Max

    Map values and separate the Left and Right results.

  4. mapEitherWithKey :: Ord k => (k -> a -> Either b c) -> MaxPQueue k a -> (MaxPQueue k b, MaxPQueue k c)

    pqueue Data.PQueue.Prio.Max

    Map values and separate the Left and Right results.

  5. mapKeys :: Ord k' => (k -> k') -> MaxPQueue k a -> MaxPQueue k' a

    pqueue Data.PQueue.Prio.Max

    Map a function over all values in the queue.

  6. mapKeysMonotonic :: (k -> k') -> MaxPQueue k a -> MaxPQueue k' a

    pqueue Data.PQueue.Prio.Max

    mapKeysMonotonic f q == mapKeys f q, but only works when f is strictly monotonic. The precondition is not checked. This function has better performance than mapKeys.

  7. mapMWithKey :: (Ord k, Monad m) => (k -> a -> m b) -> MaxPQueue k a -> m (MaxPQueue k b)

    pqueue Data.PQueue.Prio.Max

    A strictly accumulating version of traverseWithKey. This works well in IO and strict State, and is likely what you want for other "strict" monads, where ⊥ >>= pure () = ⊥.

  8. mapMaybe :: Ord k => (a -> Maybe b) -> MaxPQueue k a -> MaxPQueue k b

    pqueue Data.PQueue.Prio.Max

    Map values and collect the Just results.

  9. mapMaybeWithKey :: Ord k => (k -> a -> Maybe b) -> MaxPQueue k a -> MaxPQueue k b

    pqueue Data.PQueue.Prio.Max

    Map values and collect the Just results.

  10. mapWithKey :: (k -> a -> b) -> MaxPQueue k a -> MaxPQueue k b

    pqueue Data.PQueue.Prio.Max

    Map a function over all values in the queue.

Page 189 of many | Previous | Next