Hoogle Search

Within LTS Haskell 24.4 (ghc-9.10.2)

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

  1. adjust :: (e -> a -> e) -> MutableArray# s e -> (Int, a) -> STRep s b -> STRep s b

    base GHC.Arr

    No documentation available.

  2. bufferAdjustL :: Int -> Buffer e -> Buffer e

    base GHC.IO.Buffer

    No documentation available.

  3. bufferAdjustOffset :: Word64 -> Buffer e -> Buffer e

    base GHC.IO.Buffer

    No documentation available.

  4. adjust :: (a -> a) -> Key -> IntMap a -> IntMap a

    containers Data.IntMap.Internal

    Adjust a value at a specific key. When the key is not a member of the map, the original map is returned.

    adjust ("new " ++) 5 (fromList [(5,"a"), (3,"b")]) == fromList [(3, "b"), (5, "new a")]
    adjust ("new " ++) 7 (fromList [(5,"a"), (3,"b")]) == fromList [(3, "b"), (5, "a")]
    adjust ("new " ++) 7 empty                         == empty
    

  5. adjustWithKey :: (Key -> a -> a) -> Key -> IntMap a -> IntMap a

    containers Data.IntMap.Internal

    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")]
    adjustWithKey f 7 empty                         == empty
    

  6. adjust :: (a -> a) -> Key -> IntMap a -> IntMap a

    containers Data.IntMap.Lazy

    Adjust a value at a specific key. When the key is not a member of the map, the original map is returned.

    adjust ("new " ++) 5 (fromList [(5,"a"), (3,"b")]) == fromList [(3, "b"), (5, "new a")]
    adjust ("new " ++) 7 (fromList [(5,"a"), (3,"b")]) == fromList [(3, "b"), (5, "a")]
    adjust ("new " ++) 7 empty                         == empty
    

  7. adjustWithKey :: (Key -> a -> a) -> Key -> IntMap a -> IntMap a

    containers Data.IntMap.Lazy

    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")]
    adjustWithKey f 7 empty                         == empty
    

  8. adjust :: (a -> a) -> Key -> IntMap a -> IntMap a

    containers Data.IntMap.Strict

    Adjust a value at a specific key. When the key is not a member of the map, the original map is returned.

    adjust ("new " ++) 5 (fromList [(5,"a"), (3,"b")]) == fromList [(3, "b"), (5, "new a")]
    adjust ("new " ++) 7 (fromList [(5,"a"), (3,"b")]) == fromList [(3, "b"), (5, "a")]
    adjust ("new " ++) 7 empty                         == empty
    

  9. adjustWithKey :: (Key -> a -> a) -> Key -> IntMap a -> IntMap a

    containers Data.IntMap.Strict

    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")]
    adjustWithKey f 7 empty                         == empty
    

  10. adjust :: (a -> a) -> Key -> IntMap a -> IntMap a

    containers Data.IntMap.Strict.Internal

    Adjust a value at a specific key. When the key is not a member of the map, the original map is returned.

    adjust ("new " ++) 5 (fromList [(5,"a"), (3,"b")]) == fromList [(3, "b"), (5, "new a")]
    adjust ("new " ++) 7 (fromList [(5,"a"), (3,"b")]) == fromList [(3, "b"), (5, "a")]
    adjust ("new " ++) 7 empty                         == empty
    

Page 26 of many | Previous | Next