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. adjustMax :: (a -> a) -> NEMap k a -> NEMap k a

    nonempty-containers Data.Map.NonEmpty

    O(log n). A version of updateMax that disallows deletion, allowing us to guarantee that the result is also non-empty.

  2. adjustMaxWithKey :: (k -> a -> a) -> NEMap k a -> NEMap k a

    nonempty-containers Data.Map.NonEmpty

    O(log n). A version of updateMaxWithKey that disallows deletion, allowing us to guarantee that the result is also non-empty.

  3. adjustMin :: (a -> a) -> NEMap k a -> NEMap k a

    nonempty-containers Data.Map.NonEmpty

    O(1). A version of updateMin that disallows deletion, allowing us to guarantee that the result is also non-empty.

  4. adjustMinWithKey :: (k -> a -> a) -> NEMap k a -> NEMap k a

    nonempty-containers Data.Map.NonEmpty

    O(1). A version of adjustMaxWithKey that disallows deletion, allowing us to guarantee that the result is also non-empty. Note that it also is able to have better asymptotics than updateMinWithKey in general.

  5. adjustWithKey :: Ord k => (k -> a -> a) -> k -> NEMap k a -> NEMap k a

    nonempty-containers Data.Map.NonEmpty

    O(log n). Adjust a value at a specific key. When the key is not a member of the map, the original map is returned.

    let f key x = (show key) ++ ":new " ++ x
    adjustWithKey f 5 (fromList ((5,"a") :| [(3,"b")])) == fromList ((3, "b") :| [(5, "5:new a")])
    adjustWithKey f 7 (fromList ((5,"a") :| [(3,"b")])) == fromList ((3, "b") :| [(5, "a")])
    

  6. adjust :: (a -> a) -> Int -> NESeq a -> NESeq a

    nonempty-containers Data.Sequence.NonEmpty

    Update the element at the specified position. If the position is out of range, the original sequence is returned. adjust can lead to poor performance and even memory leaks, because it does not force the new value before installing it in the sequence. adjust' should usually be preferred.

  7. adjust' :: (a -> a) -> Int -> NESeq a -> NESeq a

    nonempty-containers Data.Sequence.NonEmpty

    Update the element at the specified position. If the position is out of range, the original sequence is returned. The new value is forced before it is installed in the sequence.

    adjust' f i xs =
    case xs !? i of
    Nothing -> xs
    Just x -> let !x' = f x
    in update i x' xs
    

  8. Font_size_adjust_ :: AttrTag

    svg-builder Graphics.Svg.Attributes

    No documentation available.

  9. LengthAdjust_ :: AttrTag

    svg-builder Graphics.Svg.Attributes

    No documentation available.

  10. adjustPassband :: C a => Passband -> (a -> Parameter a) -> a -> Parameter a

    synthesizer-core Synthesizer.Plain.Filter.Recursive.SecondOrder

    Given a function which computes the filter parameters of a lowpass filter for a given frequency, turn that into a function which generates highpass parameters, if requested filter type is Highpass.

Page 64 of many | Previous | Next