Class Endo<A>

    • Field Detail

      • INSTANCE

        private static final Endo<?> INSTANCE
    • Constructor Detail

      • Endo

        private Endo()
    • Method Detail

      • apply

        public A apply​(Fn1<A,​A> f,
                       Fn1<A,​A> g,
                       A a)
      • identity

        public Fn1<A,​A> identity()
        Description copied from interface: Monoid
        The identity element of this monoid.
        Specified by:
        identity in interface Monoid<A>
        Returns:
        the identity
      • apply

        public Fn2<Fn1<A,​A>,​A,​A> apply​(Fn1<A,​A> f)
        Description copied from interface: Fn2
        Partially apply this function by passing its first argument.
        Specified by:
        apply in interface Fn1<Fn1<A,​A>,​Fn1<Fn1<A,​A>,​Fn1<A,​A>>>
        Specified by:
        apply in interface Fn2<Fn1<A,​A>,​Fn1<A,​A>,​Fn1<A,​A>>
        Parameters:
        f - the first argument
        Returns:
        an Fn1<B, C>
      • endo

        public static <A> Endo<A> endo()
      • endo

        public static <A> Fn2<Fn1<A,​A>,​A,​A> endo​(Fn1<A,​A> f)
      • endo

        public static <A> Fn1<A,​A> endo​(Fn1<A,​A> f,
                                              Fn1<A,​A> g)
      • endo

        public static <A> A endo​(Fn1<A,​A> f,
                                 Fn1<A,​A> g,
                                 A a)