monoidmap-internal
Copyright© 2022–2026 Jonathan Knowles
LicenseApache-2.0
Safe HaskellNone
LanguageHaskell2010

Data.MonoidMap.Internal.NonNullMap.FromMapWith

Description

Provides alternative implementations of fromMapWith, which constructs a map of NonNull values from an ordinary map, applying a function to all values.

These implementations are exported so that they can be benchmarked against one another.

Documentation

fromMapWith_mapMaybe :: MonoidNull v2 => (v1 -> v2) -> Map k v1 -> NonNullMap k v2 Source #

fromMapWith_map_filter :: MonoidNull v2 => (v1 -> v2) -> Map k v1 -> NonNullMap k v2 Source #