Stability | experimental |
---|---|

Maintainer | developer@flocc.net |

Safe Haskell | Safe-Inferred |

For more information please see http://www.flocc.net/

- showMap :: Show k => Show v => Map k v -> String
- adjustOrCreate :: Ord k => a -> (a -> a) -> k -> Map k a -> Map k a
- updates :: Ord k => [(k, a)] -> Map k a -> Map k a
- sortWith :: Ord b => (a -> b) -> [a] -> [a]
- getMapChanges :: (Eq v, Ord k) => Map k v -> Map k v -> Map k v
- match :: Eq a => a -> [a] -> Bool

# Documentation

adjustOrCreate :: Ord k => a -> (a -> a) -> k -> Map k a -> Map k a

adjustOrCreate initVal transFunc key inMap tries to adjust the |value at the specified key in the map, but if the key doesn't |exist in the map, creates it with the specified intial value, |and then adjusts it.

updates :: Ord k => [(k, a)] -> Map k a -> Map k a

updates pairs map adds all the ket value pairs to the map, replacing |any that are already there

sortWith :: Ord b => (a -> b) -> [a] -> [a]

sort projF list. Sorts the list using the elements projected |out by projF.