flocc-pffb

Stabilityexperimental
Maintainerdeveloper@flocc.net
Safe HaskellSafe-Inferred

Compiler.Back.Helper

Description

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

Synopsis

Documentation

showMap :: Show k => Show v => Map k v -> String

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.

getMapChanges :: (Eq v, Ord k) => Map k v -> Map k v -> Map k v

getMapChanges afterMap beforeMap. Returns a map containing |all the new entries that have been added in afterMap, and all |members that have different values to those in beforeMap.

match :: Eq a => a -> [a] -> Bool

match v1 otherVs. Return true if |all otherVs equal v.