code: public void create_function( String name, int nargs, Function f ) {
          synchronized (this) {
              _create_function(name, nargs, f);
          }
      }
docs: Create regular function.
  
  @param name the name of the new function
  @param nargs number of arguments to function
  @param f interface of function