code: public <T extends Function> T addFunction(T function) {
  		addItem(function, functions, "functions");
  		return function;
  	}
docs: Add a function to this program.
  <p>
  @param <T>      the function type
  @param function the function
  @return the function