Class MergeHMaps

    • Method Detail

      • identity

        public HMap identity()
        Description copied from interface: Monoid
        The identity element of this monoid.
        Specified by:
        identity in interface Monoid<HMap>
        Returns:
        the identity
      • foldMap

        public <B> HMap foldMap​(Fn1<? super B,​? extends HMap> fn,
                                java.lang.Iterable<B> bs)
        Description copied from interface: Monoid
        Homomorphism combined with catamorphism. Convert an Iterable<B> to an Iterable<A> (that is, an Iterable of elements this monoid is formed over), then reduce the result from left to right. Under algebraic data types, this is isomorphic to a flatMap.
        Specified by:
        foldMap in interface Monoid<HMap>
        Type Parameters:
        B - the input Iterable element type
        Parameters:
        fn - the mapping function from A to B
        bs - the Iterable of Bs
        Returns:
        the folded result under this Monoid
        See Also:
        Map, Monoid.reduceLeft(Iterable)
      • mergeHMaps

        public static MergeHMaps mergeHMaps()