Class Succ

    • Constructor Summary

      Constructors 
      Constructor Description
      Succ()  
    • Constructor Detail

      • Succ

        public Succ()
    • Method Detail

      • name

        public Name name()
        Gets the name of this primitive function.
        Specified by:
        name in class PrimitiveFunction
        Returns:
        the function name
      • implementation

        protected java.util.function.Function<java.util.List<Term>,​java.util.function.Function<Context,​java.util.function.Function<Graph,​Either<InContext<Error_>,​Term>>>> implementation()
        Provides the implementation of this function.
        Specified by:
        implementation in class PrimitiveFunction
        Returns:
        a function that maps terms to a flow of terms
      • apply

        public static java.lang.Integer apply​(java.lang.Integer num)
        Returns the value plus one.
        Parameters:
        num - the value
        Returns:
        the successor