rio-0.1.18.0: A standard library for Haskell

Safe Haskell | Safe
Language | Haskell2010

RIO.Map.Partial

Contents

- Operators
- Indexed
- Min/Max

Description

Strict `Map` partial functions. Import as:

    import qualified RIO.Map.Partial as Map'

Synopsis

- (!) :: Ord k => Map k a -> k -> a
- elemAt :: Int -> Map k a -> (k, a)
- deleteAt :: Int -> Map k a -> Map k a
- findIndex :: Ord k => k -> Map k a -> Int
- updateAt :: (k -> a -> Maybe a) -> Int -> Map k a -> Map k a
- findMin :: Map k a -> (k, a)
- findMax :: Map k a -> (k, a)
- deleteFindMin :: Map k a -> ((k, a), Map k a)
- deleteFindMax :: Map k a -> ((k, a), Map k a)

# Operators

(!) :: Ord k => Map k a -> k -> a #

# Indexed

elemAt :: Int -> Map k a -> (k, a) #

deleteAt :: Int -> Map k a -> Map k a #

findIndex :: Ord k => k -> Map k a -> Int #

updateAt :: (k -> a -> Maybe a) -> Int -> Map k a -> Map k a #

# Min/Max

findMin :: Map k a -> (k, a) #

findMax :: Map k a -> (k, a) #

deleteFindMin :: Map k a -> ((k, a), Map k a) #

deleteFindMax :: Map k a -> ((k, a), Map k a) #