Interface BiMonoidFactory<A,​B,​C>

    • Method Detail

      • checkedApply

        default MonoidFactory<B,​C> checkedApply​(A a)
                                               throws java.lang.Throwable
        Description copied from interface: Fn2
        Invoke this function with the given argument, potentially throwing any Throwable.
        Specified by:
        checkedApply in interface Fn1<A,​B>
        Specified by:
        checkedApply in interface Fn2<A,​B,​C>
        Parameters:
        a - the argument
        Returns:
        the result of the function application
        Throws:
        java.lang.Throwable - anything possibly thrown by the function
      • apply

        default Monoid<C> apply​(A a,
                                B b)
        Description copied from interface: Fn4
        Partially apply this function by taking its first two arguments.
        Specified by:
        apply in interface BiSemigroupFactory<A,​B,​C>
        Specified by:
        apply in interface Fn2<A,​B,​C>
        Specified by:
        apply in interface Fn3<A,​B,​C,​Fn1<C,​C>>
        Specified by:
        apply in interface Fn4<A,​B,​C,​C,​C>
        Parameters:
        a - the first argument
        b - the second argument
        Returns:
        an Fn2<C, D, E>
      • apply

        default MonoidFactory<B,​C> apply​(A a)
        Description copied from interface: Fn4
        Partially apply this function by taking its first argument.
        Specified by:
        apply in interface BiSemigroupFactory<A,​B,​C>
        Specified by:
        apply in interface Fn1<A,​B>
        Specified by:
        apply in interface Fn2<A,​B,​C>
        Specified by:
        apply in interface Fn3<A,​B,​C,​Fn1<C,​C>>
        Specified by:
        apply in interface Fn4<A,​B,​C,​C,​C>
        Parameters:
        a - the first argument
        Returns:
        an Fn3<B, C, D, E>