1 module Gargantext.Data.HashMap.Strict.Utils where
3 import Data.Hashable (Hashable)
4 import Data.HashMap.Strict (HashMap)
5 import qualified Data.HashMap.Strict as HM
6 import Gargantext.Prelude
8 unionsWith :: (Foldable f, Eq k, Hashable k) => (a->a->a) -> f (HashMap k a) -> HashMap k a
9 unionsWith f = foldl' (HM.unionWith f) HM.empty