rio-0.1.17.0: A standard library for Haskell
Safe HaskellSafe
LanguageHaskell2010

RIO.Map.Unchecked

Description

This module contains functions from Data.Map.Strict that have unchecked preconditions on their input. If these preconditions are not satisfied, the data structure may end up in an invalid state and other operations may misbehave. Import as:

import qualified RIO.Map.Unchecked as Map'
Synopsis

Traversal

Map

mapKeysMonotonic :: (k1 -> k2) -> Map k1 a -> Map k2 a #

Conversion

Ordered lists

toAscList :: Map k a -> [(k, a)] #

fromAscList :: Eq k => [(k, a)] -> Map k a #

fromAscListWith :: Eq k => (a -> a -> a) -> [(k, a)] -> Map k a #

fromAscListWithKey :: Eq k => (k -> a -> a -> a) -> [(k, a)] -> Map k a #

fromDistinctAscList :: [(k, a)] -> Map k a #

toDescList :: Map k a -> [(k, a)] #

fromDescList :: Eq k => [(k, a)] -> Map k a #

fromDescListWith :: Eq k => (a -> a -> a) -> [(k, a)] -> Map k a #

fromDescListWithKey :: Eq k => (k -> a -> a -> a) -> [(k, a)] -> Map k a #

fromDistinctDescList :: [(k, a)] -> Map k a #