Add a piecewise function.
<p>
@param name         is the name of the function
@param argumentName argument name
@return the function
14606
public PiecewiseFunction addPiecewiseFunction(String name, String argumentName) {
		return addFunction(new PiecewiseFunction(name, argumentName));
	}
318929
public void addName(String name)
   {
      if (names.contains(name))
      {
         throw new IllegalArgumentException("already contains: " + name);
      }
      indexes.add(name);
      names.add(name);
      dirty = true;
   }
878432
public static PathFunction newFunction(String name) throws InvalidPathException {
        Class functionClazz = FUNCTIONS.get(name);
        if(functionClazz == null){
            throw new InvalidPathException("Function with name: " + name + " does not exist.");
        } else {
            try {
                return (PathFunction)functionClazz.newInstance();
            } catch (Exception e) {
                throw new InvalidPathException("Function of name: " + name + " cannot be created", e);
            }
        }
    }
535680
public CliCommandBuilder addCliArgument(final String arg) {
        if (arg != null) {
            final Argument argument = Arguments.parse(arg);
            final CliArgument cliArgument = CliArgument.find(argument.getKey());
            if (cliArgument != null) {
                // Remove the alternate key if required
                if (cliArgument.altKey != null) {
                    cliArgs.remove(cliArgument.altKey);
                }
            }
            cliArgs.set(argument);
        }
        return this;
    }
240436
public Option add(String name) throws RequiredParametersException {
		if (!this.data.containsKey(name)) {
			Option option = new Option(name);
			this.data.put(name, option);
			return option;
		} else {
			throw new RequiredParametersException("Option with key " + name + " already exists.");
		}
	}
345578
public RequestBuilder<T,ID> addParameter(String name,String value)
    {
        parameters.add(name, value);
        return this;
    }
674591
public CommandLineBuilder withShortOption(String name, String value) {
    cl.addOptionValue(name, value, true);
    return this;
  }
398645
public static MatrixFunction asPlusFunction(final double arg) {
        return new MatrixFunction() {
            @Override
            public double evaluate(int i, int j, double value) {
                return value + arg;
            }
        };
    }
174436
public Parameters addParameter(String name, boolean b) {
    addParameter().setName(name).setValue(new BooleanType(b));
    return this;
  }
689627
def append(self, name):
        """"""

        if not isinstance(name, str):
            raise TypeError(
                    "argument 'name' must be a string, not {}".format(
                        name.__class__.__name__
                        )
                    )

        if not name:
            raise ValueError("argument 'name' cannot be empty")

        if not name in self.__map:
            self.__map[name] = IdRangeSet()
792911
public Object invokeMethod(String name, Object args) {
        try {
        return getMetaClass().invokeMethod(this, name, args);
        }
        catch (MissingMethodException e) {
            // lets apply the method to each item in the collection
            List answer = new ArrayList(size());
            for (Iterator iter = iterator(); iter.hasNext(); ) {
                Object element = iter.next();
                Object value = InvokerHelper.invokeMethod(element, name, args);
                answer.add(value);
            }
            return answer;
        }
    }
224684
function (functionName, arguments) {
                var self = this;
                var args = self._getArgs(arguments);
                var callback = self._getCallback(arguments);

                return self._generic(functionName, args)
                    .nodeify(callback);
            }
532178
static
	public void putFunction(String name, Class<? extends Function> functionClazz){
		FunctionRegistry.functionClazzes.put(Objects.requireNonNull(name), checkClass(functionClazz));
	}
356009
public UpdatePodBuilder name(String name)
  {
    Objects.requireNonNull(name);
    
    if (name.indexOf('.') >= 0) {
      throw new IllegalArgumentException(name);
    }
    
    _name = name;
    
    return this;
  }
950157
public ISarlSkillBuilder addSarlSkill(String name) {
		ISarlSkillBuilder builder = this.sarlSkillProvider.get();
		builder.eInit(getScript(), name, getTypeResolutionContext());
		return builder;
	}
983508
public RawComponent addExperimentalComponent(String name) {
		RawComponent raw = new RawComponent(name);
		addComponent(raw);
		return raw;
	}
862945
public Object invokeMethod(final String name, final Object args) {
        return this.wrapped.invokeMethod(name, args);
    }