Module

Data.Map.Extras

Package
purescript-probability
Repository
colehaus/purescript-probability

#mapMaybe Source

mapMaybe :: forall u v k. Ord k => (v -> Maybe u) -> Map k v -> Map k u

#mapMaybeWithKey Source

mapMaybeWithKey :: forall u v k. Ord k => (k -> v -> Maybe u) -> Map k v -> Map k u

#mapKeys Source

mapKeys :: forall v k j. Ord j => Ord k => (k -> j) -> Map k v -> Map j v

#mapKeysMaybe Source

mapKeysMaybe :: forall v k j. Ord j => Ord k => (k -> Maybe j) -> Map k v -> Map j v

#mapKeysWith Source

mapKeysWith :: forall v k j. Ord j => Ord k => (v -> v -> v) -> (k -> j) -> Map k v -> Map j v

The value at the greater of the two original keys is used as the first argument to c.

#mapKeysMaybeWithValueWith Source

mapKeysMaybeWithValueWith :: forall v k j. Ord j => Ord k => (k -> Maybe j) -> (k -> v -> Maybe v -> Maybe (Tuple j v)) -> Map k v -> Map j v