code: public Function getFunction(String name) {
          for (Function f : functions) {
              if (f.getName().equals(name))
                  return f;
          }
  
          return null;
      }
docs: Returns the Function with the given name, or null if none matches.