Module

Data.Map.Extras

Package
purescript-probability
Repository
colehaus/purescript-probability

#mapMaybe Source

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

#mapMaybeWithKey Source

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

#mapKeys Source

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

#mapKeysMaybe Source

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

#mapKeysWith Source

mapKeysWith :: forall j k v. 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 j k v. Ord j => Ord k => (k -> Maybe j) -> (k -> v -> Maybe v -> Maybe (Tuple j v)) -> Map k v -> Map j v

#insertWith Source

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