Class Functor

    • Constructor Detail

      • Functor

        public Functor()
    • Method Detail

      • createTerm

        private Term createTerm​(Term functor,
                                Term arity)
        Creates a term using the given functor (name) and arity (number of arguments).
        Parameters:
        functor - an atom representing the name of the term to create
        arity - a numeric representing the number of arguments of the term to create
        Returns:
        if arity is 0 then an atom will be returned, else a structure will be created.